nixpkgs/pkgs/applications/blockchains/wownero.nix

61 lines
1.6 KiB
Nix
Raw Normal View History

2021-01-15 14:21:58 +01:00
{ lib, stdenv, fetchgit, cmake, boost, miniupnpc_2, openssl, unbound
2020-05-20 03:44:58 +02:00
, readline, libsodium, rapidjson, fetchurl
2018-11-11 07:40:25 +01:00
}:
2021-01-15 14:21:58 +01:00
with lib;
2018-11-11 07:40:25 +01:00
2020-05-20 03:44:58 +02:00
let
2020-07-10 09:00:13 +02:00
randomwowVersion = "1.1.7";
2020-05-20 03:44:58 +02:00
randomwow = fetchurl {
url = "https://github.com/wownero/RandomWOW/archive/${randomwowVersion}.tar.gz";
2020-07-10 09:00:13 +02:00
sha256 = "1xp76zf01hnhnk6rjvqjav9n9pnvxzxlzqa5rc574d1c2qczfy3q";
2020-05-20 03:44:58 +02:00
};
in
2018-11-11 07:40:25 +01:00
stdenv.mkDerivation rec {
pname = "wownero";
2020-07-10 09:00:13 +02:00
version = "0.8.0.1";
2018-11-11 07:40:25 +01:00
2020-07-10 09:00:13 +02:00
src = fetchgit {
url = "https://git.wownero.com/wownero/wownero.git";
rev = "v${version}";
sha256 = "15443xv6q1nw4627ajk6k4ghhahvh82lb4gyb8nvq753p2v838g3";
fetchSubmodules = false;
2018-11-11 07:40:25 +01:00
};
2019-11-12 05:46:02 +01:00
nativeBuildInputs = [ cmake ];
2018-11-11 07:40:25 +01:00
buildInputs = [
2019-11-12 05:46:02 +01:00
boost miniupnpc_2 openssl unbound rapidjson readline libsodium
2019-06-04 02:02:52 +02:00
];
2018-11-11 07:40:25 +01:00
2020-05-20 03:44:58 +02:00
postUnpack = ''
rm -r $sourceRoot/external/RandomWOW
unpackFile ${randomwow}
mv RandomWOW-${randomwowVersion} $sourceRoot/external/RandomWOW
'';
2018-11-11 07:40:25 +01:00
cmakeFlags = [
"-DReadline_ROOT_DIR=${readline.dev}"
"-DMANUAL_SUBMODULES=ON"
2019-06-04 02:02:52 +02:00
];
2018-11-11 07:40:25 +01:00
meta = {
2019-11-12 05:46:02 +01:00
description = ''
A privacy-centric memecoin that was fairly launched on April 1, 2018 with
no pre-mine, stealth-mine or ICO
'';
2018-11-11 07:40:25 +01:00
longDescription = ''
2019-11-12 05:46:02 +01:00
Wownero has a maximum supply of around 184 million WOW with a slow and
steady emission over 50 years. It is a fork of Monero, but with its own
genesis block, so there is no degradation of privacy due to ring
signatures using different participants for the same tx outputs on
opposing forks.
2018-11-11 07:40:25 +01:00
'';
homepage = "https://wownero.org/";
2018-11-11 07:40:25 +01:00
license = licenses.bsd3;
2019-06-04 02:02:52 +02:00
platforms = platforms.linux;
2018-11-11 07:40:25 +01:00
maintainers = with maintainers; [ fuwa ];
};
}