@@ -1,37 +0,0 @@
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−}