git.iko.soy/typeable/nixpkgs
on master help sign in
zcashNh: init 0.4b
commitd3ea26dc45d441ce5482477c6aee450048204c3a authorHerwig Hochleitner <herwig@bendlas.net> dateFri 11 Nov 2016, 19:22 (10 years ago) parent5bede1a
3 files changed+43
pkgs/applications/altcoins/default.nix+3 pkgs/applications/altcoins/zcash-nh.nix+37 pkgs/top-level/all-packages.nix+3
pkgs/applications/altcoins/default.nix+3
@@ -67,4 +67,7 @@ rec {
6767 withGui = false;
6868 openssl = openssl_1_1_0;
6969 };
70+
71+ zcashNh = callPackage ./zcash-nh.nix { };
72+
7073}
pkgs/applications/altcoins/zcash-nh.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, fetchFromGitHub, cmake
2+, cudatoolkit, boost }:
3+let rev = "0.4b";
4+ sha256 = "0825kspi1fjr5w4rpp7ay8fcsi7idl8abrgf2l51q6jwxippw49y";
5+in stdenv.mkDerivation {
6+ name = "nheqminer-${rev}";
7+ src = fetchFromGitHub {
8+ owner = "nicehash";
9+ repo = "nheqminer";
10+ inherit rev sha256;
11+ };
12+
13+ nativeBuildInputs = [
14+ cmake
15+ ];
16+
17+ buildInputs = [
18+ cudatoolkit boost
19+ ];
20+
21+ buildCommand = ''
22+ set -e
23+ unpackPhase
24+ echo "Building on $NIX_BUILD_CORES cores in"
25+ (cd $sourceRoot/cpu_xenoncat/Linux/asm
26+ ./assemble.sh)
27+ (cd $sourceRoot/Linux_cmake/nheqminer_cpu_xenoncat
28+ cmake .
29+ make -j$NIX_BUILD_CORES)
30+ (cd $sourceRoot/Linux_cmake/nheqminer_cuda_tromp
31+ cmake .
32+ make -j$NIX_BUILD_CORES)
33+ mkdir -p $out/bin
34+ cp $sourceRoot/Linux_cmake/nheqminer_cpu_xenoncat/nheqminer_cpu_xenoncat $sourceRoot/Linux_cmake/nheqminer_cuda_tromp/nheqminer_cuda_tromp $out/bin
35+ '';
36+
37+}
pkgs/top-level/all-packages.nix+3
@@ -14379,6 +14379,9 @@ with pkgs;
1437914379 dapp = self.altcoins.dapp;
1438014380 hevm = self.altcoins.hevm;
1438114381
14382+ zcash = self.altcoins.zcash;
14383+ zcashNh = self.altcoins.zcashNh;
14384+
1438214385 stellar-core = self.altcoins.stellar-core;
1438314386
1438414387 aumix = callPackage ../applications/audio/aumix {