3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/blockchains/zcash/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

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
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.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}";
sha256 = "1g5zlfzfp31my8w8nlg5fncpr2y95iv9fm04x57sjb93rgmjdh5n";
2017-03-17 09:53:11 +00:00
};
patchPhase = ''
sed -i"" 's,-fvisibility=hidden,,g' src/Makefile.am
'';
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
'';
enableParallelBuilding = true;
2017-03-17 09:53:11 +00:00
meta = {
description = "Peer-to-peer, anonymous electronic cash system";
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
};
}