2017-03-17 09:53:11 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "librustzcash-unstable-${version}";
|
|
|
|
version = "2017-03-17";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zcash";
|
|
|
|
repo = "librustzcash";
|
|
|
|
rev = "91348647a86201a9482ad4ad68398152dc3d635e";
|
|
|
|
sha256 = "02l1f46frpvw1r6k1wfh77mrsnmsdvifqx0vnscxz4xgb9ia9d1c";
|
|
|
|
};
|
|
|
|
|
2019-05-25 12:03:08 +01:00
|
|
|
cargoSha256 = "1xlq8vkzfyr5q8gxvzkwi8r1kxg4rg8l1ckdwfdxlkhnw0yscbra";
|
2017-03-17 09:53:11 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp target/release/librustzcash.a $out/lib/
|
|
|
|
mkdir -p $out/include
|
|
|
|
cp include/librustzcash.h $out/include/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Rust-language assets for Zcash";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/zcash/librustzcash;
|
2017-03-17 09:53:11 +00:00
|
|
|
maintainers = with maintainers; [ rht ];
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|