2017-03-17 09:53:11 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-03-07 16:48:13 +00:00
|
|
|
pname = "librustzcash";
|
|
|
|
version = "0.1.0";
|
2017-03-17 09:53:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zcash";
|
|
|
|
repo = "librustzcash";
|
2020-03-07 16:48:13 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0d28k29sgzrg9clynz29kpw50kbkp0a4dfdayqhmpjmsh05y6261";
|
2017-03-17 09:53:11 +00:00
|
|
|
};
|
|
|
|
|
2020-03-07 16:48:13 +00:00
|
|
|
cargoSha256 = "1wzyrcmcbrna6rjzw19c4lq30didzk4w6fs6wmvxp0xfg4qqdlax";
|
2017-03-17 09:53:11 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib
|
2020-03-19 08:39:14 +00:00
|
|
|
cp $releaseDir/librustzcash.a $out/lib/
|
2017-03-17 09:53:11 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
|
2020-03-07 16:48:13 +00:00
|
|
|
# The tests do pass, but they take an extremely long time to run.
|
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";
|
2020-03-07 16:48:13 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|