Merge pull request #23985 from rht/zcash

zcash: reinit at 1.0.8

authored by

Michael Raskin and committed by
GitHub
bd537448 2521af87

+223
+6
pkgs/applications/altcoins/default.nix
··· 43 43 primecoind = callPackage ./primecoin.nix { withGui = false; }; 44 44 45 45 stellar-core = callPackage ./stellar-core.nix { }; 46 + 47 + zcash = callPackage ./zcash { 48 + withGui = false; 49 + openssl = pkgs.openssl_1_1_0; 50 + boost = pkgs.boost163; 51 + }; 46 52 }
+49
pkgs/applications/altcoins/zcash/default.nix
··· 1 + { stdenv, libsodium, fetchFromGitHub, wget, pkgconfig, autoreconfHook, openssl, db62, boost 2 + , zlib, gtest, gmock, miniupnpc, callPackage, gmp, qt4, utillinux, protobuf, qrencode, libevent 3 + , withGui }: 4 + 5 + let libsnark = callPackage ./libsnark { inherit boost openssl; }; 6 + librustzcash = callPackage ./librustzcash {}; 7 + in 8 + with stdenv.lib; 9 + stdenv.mkDerivation rec{ 10 + 11 + name = "zcash" + (toString (optional (!withGui) "d")) + "-" + version; 12 + version = "1.0.8"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "zcash"; 16 + repo = "zcash"; 17 + rev = "f630519d865ce22a6cf72a29785f2a876902f8e1"; 18 + sha256 = "1zjxg3dp0amjfs67469yp9b223v9hx29lkxid9wz2ivxj3paq7bv"; 19 + }; 20 + 21 + enableParallelBuilding = true; 22 + 23 + buildInputs = [ pkgconfig gtest gmock gmp libsnark autoreconfHook openssl wget db62 boost zlib 24 + miniupnpc protobuf libevent libsodium librustzcash ] 25 + ++ optionals stdenv.isLinux [ utillinux ] 26 + ++ optionals withGui [ qt4 qrencode ]; 27 + 28 + configureFlags = [ "LIBSNARK_INCDIR=${libsnark}/include/libsnark" 29 + "--with-boost-libdir=${boost.out}/lib" 30 + ] ++ optionals withGui [ "--with-gui=qt4" ]; 31 + 32 + patchPhase = '' 33 + sed -i"" '/^\[LIBSNARK_INCDIR/d' configure.ac 34 + sed -i"" 's,-lboost_system-mt,-lboost_system,' configure.ac 35 + sed -i"" 's,-fvisibility=hidden,,g' src/Makefile.am 36 + ''; 37 + 38 + postInstall = '' 39 + cp zcutil/fetch-params.sh $out/bin/zcash-fetch-params 40 + ''; 41 + 42 + meta = { 43 + description = "Peer-to-peer, anonymous electronic cash system"; 44 + homepage = "https://z.cash/"; 45 + maintainers = with maintainers; [ rht ]; 46 + license = licenses.mit; 47 + platforms = platforms.unix; 48 + }; 49 + }
+30
pkgs/applications/altcoins/zcash/librustzcash/default.nix
··· 1 + { stdenv, fetchFromGitHub, rustPlatform }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + name = "librustzcash-unstable-${version}"; 5 + version = "2017-03-17"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "zcash"; 9 + repo = "librustzcash"; 10 + rev = "91348647a86201a9482ad4ad68398152dc3d635e"; 11 + sha256 = "02l1f46frpvw1r6k1wfh77mrsnmsdvifqx0vnscxz4xgb9ia9d1c"; 12 + }; 13 + 14 + depsSha256 = "02qx8zdhmj7rmhqqq5q9428x9mlrjxxcnn4yhnygz9gfgvada2hx"; 15 + 16 + installPhase = '' 17 + mkdir -p $out/lib 18 + cp target/release/librustzcash.a $out/lib/ 19 + mkdir -p $out/include 20 + cp include/librustzcash.h $out/include/ 21 + ''; 22 + 23 + meta = with stdenv.lib; { 24 + description = "Rust-language assets for Zcash"; 25 + homepage = "https://github.com/zcash/librustzcash"; 26 + maintainers = with maintainers; [ rht ]; 27 + license = with licenses; [ mit asl20 ]; 28 + platforms = platforms.unix; 29 + }; 30 + }
+29
pkgs/applications/altcoins/zcash/libsnark/ate-pairing.nix
··· 1 + { stdenv, xbyak, gmp, fetchFromGitHub }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "ate-pairing-unstable-${version}"; 5 + version = "2016-05-03"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "herumi"; 9 + repo = "ate-pairing"; 10 + rev = "dcb9da999b1113f90b115bccb6f4b57ddf3a8452"; 11 + sha256 = "0jr6r1cma414k8mhsyp7n8hqaqxi7zklsp6820a095sbb3zajckh"; 12 + }; 13 + 14 + buildInputs = [ gmp xbyak ]; 15 + 16 + installPhase = '' 17 + mkdir -p $out 18 + cp -r lib $out 19 + cp -r include $out 20 + ''; 21 + 22 + meta = with stdenv.lib; { 23 + description = "Optimal Ate Pairing over Barreto-Naehrig Curves"; 24 + homepage = "https://github.com/herumi/ate-pairing"; 25 + maintainers = with maintainers; [ rht ]; 26 + license = licenses.bsd3; 27 + platforms = platforms.unix; 28 + }; 29 + }
+45
pkgs/applications/altcoins/zcash/libsnark/default.nix
··· 1 + { stdenv, libsodium, callPackage, boost, zlib, openssl, gmp, procps, fetchFromGitHub }: 2 + 3 + let atePairing = callPackage ./ate-pairing.nix { inherit xbyak; }; 4 + mie = callPackage ./mie.nix { }; 5 + xbyak = callPackage ./xbyak.nix {}; 6 + in 7 + stdenv.mkDerivation rec{ 8 + name = "libsnark-unstable-${version}"; 9 + version = "2017-02-09"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "zcash"; 13 + repo = "libsnark"; 14 + rev = "9ada3f84ab484c57b2247c2f41091fd6a0916573"; 15 + sha256 = "0vhslcb9rwqab9szavyn856z4h9w1syiamfcixqmj0s908zzlaaq"; 16 + }; 17 + 18 + buildInputs = [ libsodium atePairing mie xbyak zlib openssl boost gmp ]; 19 + 20 + makeFlags = [ 21 + "PREFIX=$(out)" 22 + "CURVE=ALT_BN128" 23 + "NO_SUPERCOP=1" 24 + "STATIC=1" 25 + ]; 26 + 27 + buildPhase = '' 28 + CXXFLAGS="-fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" \ 29 + make lib \ 30 + CURVE=ALT_BN128 \ 31 + MULTICORE=1 \ 32 + STATIC=1 \ 33 + NO_PROCPS=1 \ 34 + NO_GTEST=1 \ 35 + FEATUREFLAGS=-DMONTGOMERY_OUTPUT \ 36 + ''; 37 + 38 + meta = with stdenv.lib; { 39 + description = "a C++ library for zkSNARK proofs"; 40 + homepage = "https://github.com/zcash/libsnark"; 41 + maintainers = with maintainers; [ rht ]; 42 + license = licenses.mit; 43 + platforms = platforms.unix; 44 + }; 45 + }
+27
pkgs/applications/altcoins/zcash/libsnark/mie.nix
··· 1 + { stdenv, fetchFromGitHub }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "mie-unstable-${version}"; 5 + version = "2016-05-10"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "herumi"; 9 + repo = "mie"; 10 + rev = "704b625b7770a8e1eab26ac65d1fed14c2fcf090"; 11 + sha256 = "144bpmgfs2m4qqv7a2mccgi1aq5jmlr25gnk78ryq09z8cyv88y2"; 12 + }; 13 + 14 + phases = ["unpackPhase" "installPhase"]; 15 + 16 + installPhase = '' 17 + mkdir -p $out 18 + cp -r include $out 19 + ''; 20 + 21 + meta = with stdenv.lib; { 22 + homepage = "https://github.com/herumi/mie"; 23 + maintainers = with maintainers; [ rht ]; 24 + license = licenses.bsd3; 25 + platforms = platforms.unix; 26 + }; 27 + }
+28
pkgs/applications/altcoins/zcash/libsnark/xbyak.nix
··· 1 + { stdenv, fetchFromGitHub }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "xbyak-unstable-${version}"; 5 + version = "2016-05-03"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "herumi"; 9 + repo = "xbyak"; 10 + rev = "b6133a02dd6b7116bea31d0e6b7142bf97f071aa"; 11 + sha256 = "1rc2nx8kj2lj13whxb9chhh79f4hmjjj4j1hpqsd0lbdb60jikrn"; 12 + }; 13 + 14 + phases = ["unpackPhase" "installPhase"]; 15 + 16 + installPhase = '' 17 + mkdir -p $out/include 18 + cp -r xbyak $out/include 19 + ''; 20 + 21 + meta = with stdenv.lib; { 22 + description = "JIT assembler for x86, x64"; 23 + homepage = "https://github.com/herumi/xbyak"; 24 + maintainers = with maintainers; [ rht ]; 25 + license = licenses.bsd3; 26 + platforms = platforms.unix; 27 + }; 28 + }
+8
pkgs/development/libraries/db/db-6.2.nix
··· 1 + { stdenv, fetchurl, ... } @ args: 2 + 3 + import ./generic.nix (args // rec { 4 + version = "6.2.23"; 5 + sha256 = "1isxx4jfmnh913jzhp8hhfngbk6dsg46f4kjpvvc56maj64jqqa7"; 6 + license = stdenv.lib.licenses.agpl3; 7 + extraPatches = [ ./clang-6.0.patch ]; 8 + })
+1
pkgs/top-level/all-packages.nix
··· 7541 7541 db53 = callPackage ../development/libraries/db/db-5.3.nix { }; 7542 7542 db6 = db60; 7543 7543 db60 = callPackage ../development/libraries/db/db-6.0.nix { }; 7544 + db62 = callPackage ../development/libraries/db/db-6.2.nix { }; 7544 7545 7545 7546 dbus = callPackage ../development/libraries/dbus { }; 7546 7547 dbus_cplusplus = callPackage ../development/libraries/dbus-cplusplus { };