|
|
|
@ -1,24 +1,24 @@ |
|
|
|
|
{ rust, rustPlatform, stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper |
|
|
|
|
, cargo, pkg-config, curl, coreutils, boost175, db62, hexdump, libsodium |
|
|
|
|
, cargo, pkg-config, curl, coreutils, boost177, db62, hexdump, libsodium |
|
|
|
|
, libevent, utf8cpp, util-linux, withDaemon ? true, withMining ? true |
|
|
|
|
, withUtils ? true, withWallet ? true, withZmq ? true, zeromq |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage.override { stdenv = stdenv; } rec { |
|
|
|
|
pname = "zcash"; |
|
|
|
|
version = "4.6.0-1"; |
|
|
|
|
version = "4.6.0-2"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "zcash"; |
|
|
|
|
repo = "zcash"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "sha256-YJ5ufo+LYbOTr9SyiEzzp1pcSx6+cHSvDLBOIcx9X+4="; |
|
|
|
|
sha256 = "sha256-RvUa8CKPBFfsqzrJkPHePZMqpCfyVafrUbftMdTviHA="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
cargoSha256 = "sha256-m/SBHv3BNYKkSXxHnCdVng3blbHrTc/HxX/nEIa1DnM="; |
|
|
|
|
cargoSha256 = "sha256-qWimataBZ/rLDOLgetNfFAzi/psXcJV54b3WGm9k+b4="; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook cargo hexdump makeWrapper pkg-config ]; |
|
|
|
|
buildInputs = [ boost175 libevent libsodium utf8cpp ] |
|
|
|
|
buildInputs = [ boost177 libevent libsodium utf8cpp ] |
|
|
|
|
++ lib.optional withWallet db62 |
|
|
|
|
++ lib.optional withZmq zeromq; |
|
|
|
|
|
|
|
|
@ -37,7 +37,7 @@ rustPlatform.buildRustPackage.override { stdenv = stdenv; } rec { |
|
|
|
|
|
|
|
|
|
configureFlags = [ |
|
|
|
|
"--disable-tests" |
|
|
|
|
"--with-boost-libdir=${lib.getLib boost175}/lib" |
|
|
|
|
"--with-boost-libdir=${lib.getLib boost177}/lib" |
|
|
|
|
"CXXFLAGS=-I${lib.getDev utf8cpp}/include/utf8cpp" |
|
|
|
|
"RUST_TARGET=${rust.toRustTargetSpec stdenv.hostPlatform}" |
|
|
|
|
] ++ lib.optional (!withWallet) "--disable-wallet" |
|
|
|
|