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

33 lines
887 B
Nix
Raw Normal View History

2017-03-17 09:53:11 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "librustzcash-unstable";
2019-11-13 14:40:36 +00:00
version = "2018-10-27";
2017-03-17 09:53:11 +00:00
src = fetchFromGitHub {
owner = "zcash";
repo = "librustzcash";
2019-11-13 14:40:36 +00:00
rev = "06da3b9ac8f278e5d4ae13088cf0a4c03d2c13f5";
sha256 = "0md0pp3k97iv7kfjpfkg14pjanhrql4vafa8ggbxpkajv1j4xldv";
2017-03-17 09:53:11 +00:00
};
2019-11-13 14:40:36 +00:00
cargoSha256 = "166v8cxlpfslbs5gljbh7wp0lxqakayw47ikxm9r9a39n7j36mq1";
2017-03-17 09:53:11 +00:00
installPhase = ''
mkdir -p $out/lib
cp target/release/librustzcash.a $out/lib/
mkdir -p $out/include
2019-11-13 14:40:36 +00:00
cp librustzcash/include/librustzcash.h $out/include/
2017-03-17 09:53:11 +00:00
'';
2019-11-13 14:40:36 +00:00
doCheck = false;
2017-03-17 09:53:11 +00:00
meta = with stdenv.lib; {
description = "Rust-language assets for Zcash";
homepage = https://github.com/zcash/librustzcash;
2019-11-13 14:40:36 +00:00
maintainers = with maintainers; [ rht tkerber ];
2017-03-17 09:53:11 +00:00
license = with licenses; [ mit asl20 ];
platforms = platforms.unix;
};
}