altcoins.wownero: 0.5.0.2 -> 0.6.1.2

This commit is contained in:
fuwa 2019-06-04 08:02:52 +08:00
parent 5510c82fde
commit a7b6d9153c
2 changed files with 7 additions and 13 deletions

View File

@ -84,9 +84,7 @@ rec {
sumokoin = callPackage ./sumokoin.nix { boost = boost165; }; sumokoin = callPackage ./sumokoin.nix { boost = boost165; };
wownero = callPackage ./wownero.nix { wownero = callPackage ./wownero.nix {};
inherit (darwin.apple_sdk.frameworks) CoreData IOKit PCSC;
};
zcash = callPackage ./zcash { zcash = callPackage ./zcash {
withGui = false; withGui = false;

View File

@ -1,22 +1,20 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, git { stdenv, fetchFromGitHub, cmake, pkgconfig, git
, boost, miniupnpc_2, openssl, unbound, cppzmq , boost, miniupnpc_2, openssl, unbound, cppzmq
, zeromq, pcsclite, readline, libsodium, rapidjson , zeromq, pcsclite, readline, libsodium, rapidjson
, CoreData, IOKit, PCSC
}: }:
assert stdenv.isDarwin -> IOKit != null;
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "wownero-${version}"; name = "wownero-${version}";
version = "0.5.0.2"; version = "0.6.1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wownero"; owner = "wownero";
repo = "wownero"; repo = "wownero";
rev = "v${version}"; rev = "v${version}";
sha256 = "120cfkl2q8qgl3ajxfkkri9bxlnvmr1mhb1wvcigch1lqyflff1w"; sha256 = "03q3pviyhrldpa3f4ly4d97jr39hvrz37chl102bap0790d9lk09";
fetchSubmodules = true;
}; };
nativeBuildInputs = [ cmake pkgconfig git ]; nativeBuildInputs = [ cmake pkgconfig git ];
@ -24,14 +22,12 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
boost miniupnpc_2 openssl unbound rapidjson boost miniupnpc_2 openssl unbound rapidjson
cppzmq zeromq pcsclite readline libsodium cppzmq zeromq pcsclite readline libsodium
] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ]; ];
cmakeFlags = [ cmakeFlags = [
"-DReadline_ROOT_DIR=${readline.dev}" "-DReadline_ROOT_DIR=${readline.dev}"
"-DMANUAL_SUBMODULES=ON" "-DMANUAL_SUBMODULES=ON"
] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF"; ];
hardeningDisable = [ "fortify" ];
meta = { meta = {
description = "Wownero is a fork of the cryptocurrency Monero with primary alterations"; description = "Wownero is a fork of the cryptocurrency Monero with primary alterations";
@ -44,7 +40,7 @@ stdenv.mkDerivation rec {
''; '';
homepage = http://wownero.org/; homepage = http://wownero.org/;
license = licenses.bsd3; license = licenses.bsd3;
platforms = platforms.all; platforms = platforms.linux;
maintainers = with maintainers; [ fuwa ]; maintainers = with maintainers; [ fuwa ];
}; };
} }