zcashNh: init 0.4b
This commit is contained in:
parent
5bede1a252
commit
d3ea26dc45
@ -67,4 +67,7 @@ rec {
|
|||||||
withGui = false;
|
withGui = false;
|
||||||
openssl = openssl_1_1_0;
|
openssl = openssl_1_1_0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zcashNh = callPackage ./zcash-nh.nix { };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
37
pkgs/applications/altcoins/zcash-nh.nix
Normal file
37
pkgs/applications/altcoins/zcash-nh.nix
Normal file
@ -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
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
@ -14379,6 +14379,9 @@ with pkgs;
|
|||||||
dapp = self.altcoins.dapp;
|
dapp = self.altcoins.dapp;
|
||||||
hevm = self.altcoins.hevm;
|
hevm = self.altcoins.hevm;
|
||||||
|
|
||||||
|
zcash = self.altcoins.zcash;
|
||||||
|
zcashNh = self.altcoins.zcashNh;
|
||||||
|
|
||||||
stellar-core = self.altcoins.stellar-core;
|
stellar-core = self.altcoins.stellar-core;
|
||||||
|
|
||||||
aumix = callPackage ../applications/audio/aumix {
|
aumix = callPackage ../applications/audio/aumix {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user