2018-11-11 06:40:25 +00:00
|
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, git
|
2019-02-11 03:48:52 +00:00
|
|
|
|
, boost, miniupnpc_2, openssl, unbound, cppzmq
|
|
|
|
|
, zeromq, pcsclite, readline, libsodium, rapidjson
|
2018-11-11 06:40:25 +00:00
|
|
|
|
, CoreData, IOKit, PCSC
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
assert stdenv.isDarwin -> IOKit != null;
|
|
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "wownero-${version}";
|
|
|
|
|
|
2019-02-11 03:48:52 +00:00
|
|
|
|
version = "0.5.0.0";
|
2018-11-11 06:40:25 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "wownero";
|
|
|
|
|
repo = "wownero";
|
|
|
|
|
rev = "v${version}";
|
2019-02-11 03:48:52 +00:00
|
|
|
|
sha256 = "1dy9ycabva2z0896al1k2avl9xppkxvm1p2jwmg509ahjl98k3sy";
|
2018-11-11 06:40:25 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig git ];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-02-11 03:48:52 +00:00
|
|
|
|
boost miniupnpc_2 openssl unbound rapidjson
|
2018-11-11 06:40:25 +00:00
|
|
|
|
cppzmq zeromq pcsclite readline libsodium
|
|
|
|
|
] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ];
|
|
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
|
|
|
|
"-DMANUAL_SUBMODULES=ON"
|
|
|
|
|
] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
|
|
|
|
|
|
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "Wownero is a fork of the cryptocurrency Monero with primary alterations";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Wownero’s emission is capped and supply is finite. Wownero is a fairly
|
|
|
|
|
launched coin with no premine. It’s not a fork of another blockchain. With
|
|
|
|
|
its own genesis block there is no degradation of privacy caused by ring
|
|
|
|
|
signatures using different participants for the same transaction outputs.
|
|
|
|
|
Unlike opposing forks.
|
|
|
|
|
'';
|
|
|
|
|
homepage = http://wownero.org/;
|
|
|
|
|
license = licenses.bsd3;
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
maintainers = with maintainers; [ fuwa ];
|
|
|
|
|
};
|
|
|
|
|
}
|