nixpkgs/pkgs/applications/blockchains/zcash/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

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