summary refs log tree commit diff
path: root/pkgs/applications/blockchains/zcash/librustzcash/default.nix
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2019-08-28 10:37:52 -0700
committerWilliam Casarin <jb55@jb55.com>2019-08-29 05:01:42 -0700
commit72682e46546d6d024a29e2fde009372e03b45b9f (patch)
tree4f5c749f3fdff3f182d9f7b005339aa10fd53897 /pkgs/applications/blockchains/zcash/librustzcash/default.nix
parent58fd72f3e996856d5a4ba21ae25f87a82fe3e5dc (diff)
downloadnixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar
nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.gz
nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.bz2
nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.lz
nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.xz
nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.zst
nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.zip
tree: rename altcoins to blockchains
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat (limited to 'pkgs/applications/blockchains/zcash/librustzcash/default.nix')
-rw-r--r--pkgs/applications/blockchains/zcash/librustzcash/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/zcash/librustzcash/default.nix b/pkgs/applications/blockchains/zcash/librustzcash/default.nix
new file mode 100644
index 00000000000..3aeee7e6972
--- /dev/null
+++ b/pkgs/applications/blockchains/zcash/librustzcash/default.nix
@@ -0,0 +1,30 @@
+{ 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;
+  };
+}