062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
30 lines
856 B
Nix
30 lines
856 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "librustzcash-unstable-${version}";
|
|
version = "2017-03-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zcash";
|
|
repo = "librustzcash";
|
|
rev = "91348647a86201a9482ad4ad68398152dc3d635e";
|
|
sha256 = "02l1f46frpvw1r6k1wfh77mrsnmsdvifqx0vnscxz4xgb9ia9d1c";
|
|
};
|
|
|
|
cargoSha256 = "1xlq8vkzfyr5q8gxvzkwi8r1kxg4rg8l1ckdwfdxlkhnw0yscbra";
|
|
|
|
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";
|
|
homepage = https://github.com/zcash/librustzcash;
|
|
maintainers = with maintainers; [ rht ];
|
|
license = with licenses; [ mit asl20 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|