2019-11-13 14:40:36 +00:00
|
|
|
{ stdenv, libsodium, fetchFromGitHub, wget, pkgconfig, autoreconfHook, openssl, db62, boost17x
|
|
|
|
, zlib, gtest, gmock, callPackage, gmp, qt4, utillinux, protobuf, qrencode, libevent }:
|
2017-03-17 09:53:11 +00:00
|
|
|
|
2018-01-03 05:55:38 +00:00
|
|
|
let librustzcash = callPackage ./librustzcash {};
|
2017-03-17 09:53:11 +00:00
|
|
|
in
|
|
|
|
with stdenv.lib;
|
2017-08-22 04:29:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-17 09:53:11 +00:00
|
|
|
|
2019-11-13 14:40:36 +00:00
|
|
|
pname = "zcash";
|
2020-03-07 16:50:03 +00:00
|
|
|
version = "2.1.1-1";
|
2017-03-17 09:53:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zcash";
|
|
|
|
repo = "zcash";
|
2017-08-22 04:29:17 +01:00
|
|
|
rev = "v${version}";
|
2020-03-07 16:50:03 +00:00
|
|
|
sha256 = "1g5zlfzfp31my8w8nlg5fncpr2y95iv9fm04x57sjb93rgmjdh5n";
|
2017-03-17 09:53:11 +00:00
|
|
|
};
|
|
|
|
|
2020-03-07 16:50:03 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i"" 's,-fvisibility=hidden,,g' src/Makefile.am
|
|
|
|
'';
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2019-11-13 14:40:36 +00:00
|
|
|
buildInputs = [ gtest gmock gmp openssl wget db62 boost17x zlib
|
|
|
|
protobuf libevent libsodium librustzcash ]
|
|
|
|
++ optionals stdenv.isLinux [ utillinux ];
|
2017-03-17 09:53:11 +00:00
|
|
|
|
2019-11-13 14:40:36 +00:00
|
|
|
configureFlags = [ "--with-boost-libdir=${boost17x.out}/lib" ];
|
2017-03-17 09:53:11 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp zcutil/fetch-params.sh $out/bin/zcash-fetch-params
|
|
|
|
'';
|
|
|
|
|
2020-03-07 16:50:03 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-03-17 09:53:11 +00:00
|
|
|
meta = {
|
|
|
|
description = "Peer-to-peer, anonymous electronic cash system";
|
2020-03-07 16:50:03 +00:00
|
|
|
homepage = "https://z.cash/";
|
2019-11-13 14:40:36 +00:00
|
|
|
maintainers = with maintainers; [ rht tkerber ];
|
2017-03-17 09:53:11 +00:00
|
|
|
license = licenses.mit;
|
2017-11-24 11:23:01 +00:00
|
|
|
platforms = platforms.linux;
|
2017-03-17 09:53:11 +00:00
|
|
|
};
|
|
|
|
}
|