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

42 lines
1.2 KiB
Nix
Raw Normal View History

2019-11-13 15:40:36 +01:00
{ stdenv, libsodium, fetchFromGitHub, wget, pkgconfig, autoreconfHook, openssl, db62, boost17x
, zlib, gtest, gmock, callPackage, gmp, qt4, utillinux, protobuf, qrencode, libevent }:
2017-03-17 10:53:11 +01:00
let librustzcash = callPackage ./librustzcash {};
2017-03-17 10:53:11 +01:00
in
with stdenv.lib;
2017-08-22 05:29:17 +02:00
stdenv.mkDerivation rec {
2017-03-17 10:53:11 +01:00
2019-11-13 15:40:36 +01:00
pname = "zcash";
version = "2.1.0-1";
2017-03-17 10:53:11 +01:00
src = fetchFromGitHub {
owner = "zcash";
repo = "zcash";
2017-08-22 05:29:17 +02:00
rev = "v${version}";
2019-11-13 15:40:36 +01:00
sha256 = "05bnn4lxrrcv1ha3jdfrgwg4ar576161n3j9d4gpc14ww3zgf9vz";
2017-03-17 10:53:11 +01:00
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
2019-11-13 15:40:36 +01:00
buildInputs = [ gtest gmock gmp openssl wget db62 boost17x zlib
protobuf libevent libsodium librustzcash ]
++ optionals stdenv.isLinux [ utillinux ];
2017-03-17 10:53:11 +01:00
2019-11-13 15:40:36 +01:00
configureFlags = [ "--with-boost-libdir=${boost17x.out}/lib" ];
2017-03-17 10:53:11 +01: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";
homepage = https://z.cash/;
2019-11-13 15:40:36 +01:00
maintainers = with maintainers; [ rht tkerber ];
2017-03-17 10:53:11 +01:00
license = licenses.mit;
2017-11-24 12:23:01 +01:00
platforms = platforms.linux;
2017-03-17 10:53:11 +01:00
};
}