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";
|
|
|
|
version = "2.1.0-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}";
|
2019-11-13 14:40:36 +00:00
|
|
|
sha256 = "05bnn4lxrrcv1ha3jdfrgwg4ar576161n3j9d4gpc14ww3zgf9vz";
|
2017-03-17 09:53:11 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i"" 's,-fvisibility=hidden,,g' src/Makefile.am
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp zcutil/fetch-params.sh $out/bin/zcash-fetch-params
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Peer-to-peer, anonymous electronic cash system";
|
2017-08-01 21:03:30 +01: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
|
|
|
};
|
|
|
|
}
|