@@ -1,25 +1,26 @@
11{ rust, rustPlatform, stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper
2−, fetchpatch, cargo, pkg-config, curl, coreutils, boost174, db62, hexdump
3−, libsodium, libevent, utf8cpp, util-linux, withWallet ? true, withDaemon ? true
4−, withUtils ? true
2+, cargo, pkg-config, curl, coreutils, boost174, db62, hexdump, libsodium
3+, libevent, utf8cpp, util-linux, withDaemon ? true, withMining ? true
4+, withUtils ? true, withWallet ? true, withZmq ? true, zeromq
55}:
66
77rustPlatform.buildRustPackage.override { stdenv = stdenv; } rec {
88 pname = "zcash";
9− version = "4.3.0";
9+ version = "4.4.0";
1010
1111 src = fetchFromGitHub {
1212 owner = "zcash";
1313 repo = "zcash";
1414 rev = "v${version}";
15− sha256 = "00pn1jw8j90y7i8nc92b51znz4gczphvdzbkbcjx63cf6vk7v4ks";
15+ sha256 = "19vhblyqkaf1lapx8s4v88xjpslqmrd1jnar46rschzcz0mm9sq4";
1616 };
1717
18− cargoSha256 = "1rl9sjbvpfrv1mlyb04vw1935qx0kz9cs177xl7izdva1ixk9blr";
18+ cargoSha256 = "1yiy1506ijndxb9bx79p7fkfvw1c5zdsljil4m55xz1mv8dzhbgm";
1919
2020 nativeBuildInputs = [ autoreconfHook cargo hexdump makeWrapper pkg-config ];
2121 buildInputs = [ boost174 libevent libsodium utf8cpp ]
22− ++ lib.optional withWallet db62;
22+ ++ lib.optional withWallet db62
23+ ++ lib.optional withZmq zeromq;
2324
2425 # Use the stdenv default phases (./configure; make) instead of the
2526 # ones from buildRustPackage.
@@ -28,14 +29,6 @@ rustPlatform.buildRustPackage.override { stdenv = stdenv; } rec {
2829 checkPhase = "checkPhase";
2930 installPhase = "installPhase";
3031
31− patches = [
32− # See https://github.com/zcash/zcash/pull/5015
33− (fetchpatch {
34− url = "https://github.com/zcash/zcash/commit/a0ac27ec6ed434a233c7ad2468258f6e6e7e9688.patch";
35− sha256 = "0pmx1spql9p8vvpjgw7qf3qy46f4mh9ni16bq4ss1xz1z9zgjc4k";
36− })
37− ];
38−
3932 postPatch = ''
4033 # Have to do this here instead of in preConfigure because
4134 # cargoDepsCopy gets unset after postPatch.
@@ -49,7 +42,8 @@ rustPlatform.buildRustPackage.override { stdenv = stdenv; } rec {
4942 "RUST_TARGET=${rust.toRustTargetSpec stdenv.hostPlatform}"
5043 ] ++ lib.optional (!withWallet) "--disable-wallet"
5144 ++ lib.optional (!withDaemon) "--without-daemon"
52− ++ lib.optional (!withUtils) "--without-utils";
45+ ++ lib.optional (!withUtils) "--without-utils"
46+ ++ lib.optional (!withMining) "--disable-mining";
5347
5448 enableParallelBuilding = true;
5549