diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix index 37df75ae110..028bf2ffbce 100644 --- a/pkgs/applications/altcoins/default.nix +++ b/pkgs/applications/altcoins/default.nix @@ -67,4 +67,7 @@ rec { withGui = false; openssl = openssl_1_1_0; }; + + zcashNh = callPackage ./zcash-nh.nix { }; + } diff --git a/pkgs/applications/altcoins/zcash-nh.nix b/pkgs/applications/altcoins/zcash-nh.nix new file mode 100644 index 00000000000..3bf4645aa89 --- /dev/null +++ b/pkgs/applications/altcoins/zcash-nh.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, cmake +, cudatoolkit, boost }: +let rev = "0.4b"; + sha256 = "0825kspi1fjr5w4rpp7ay8fcsi7idl8abrgf2l51q6jwxippw49y"; +in stdenv.mkDerivation { + name = "nheqminer-${rev}"; + src = fetchFromGitHub { + owner = "nicehash"; + repo = "nheqminer"; + inherit rev sha256; + }; + + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + cudatoolkit boost + ]; + + buildCommand = '' + set -e + unpackPhase + echo "Building on $NIX_BUILD_CORES cores in" + (cd $sourceRoot/cpu_xenoncat/Linux/asm + ./assemble.sh) + (cd $sourceRoot/Linux_cmake/nheqminer_cpu_xenoncat + cmake . + make -j$NIX_BUILD_CORES) + (cd $sourceRoot/Linux_cmake/nheqminer_cuda_tromp + cmake . + make -j$NIX_BUILD_CORES) + mkdir -p $out/bin + cp $sourceRoot/Linux_cmake/nheqminer_cpu_xenoncat/nheqminer_cpu_xenoncat $sourceRoot/Linux_cmake/nheqminer_cuda_tromp/nheqminer_cuda_tromp $out/bin + ''; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3e216d7391a..96dc77cfd2b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14379,6 +14379,9 @@ with pkgs; dapp = self.altcoins.dapp; hevm = self.altcoins.hevm; + zcash = self.altcoins.zcash; + zcashNh = self.altcoins.zcashNh; + stellar-core = self.altcoins.stellar-core; aumix = callPackage ../applications/audio/aumix {