xmr-stak: 2.0.0 -> 2.1.0

This commit is contained in:
Franz Pletz 2017-12-12 14:27:49 +01:00
parent cd7c8e42c6
commit f429d40f4a
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,28 +1,30 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
, opencl-headers, ocl-icd, hwloc, cudatoolkit
, devDonationLevel ? "0.0"
, cudaSupport ? false # doesn't work currently
, cudaSupport ? false
, openclSupport ? false
}:
stdenv.mkDerivation rec {
name = "xmr-stak-${version}";
version = "2.0.0";
version = "2.1.0";
src = fetchFromGitHub {
owner = "fireice-uk";
repo = "xmr-stak";
rev = "v${version}";
sha256 = "1gsp5d2qmc8qwbfm87c2vnak6ks6y9csfjbsi0570pdciapaf8vs";
sha256 = "0ijhimsd03v1psj7pyj70z4rrgfvphpf69y7g72p06010xq1agp8";
};
NIX_CFLAGS_COMPILE = "-O3";
cmakeFlags = lib.optional (!cudaSupport) "-DCUDA_ENABLE=OFF";
cmakeFlags = lib.optional (!cudaSupport) "-DCUDA_ENABLE=OFF"
++ lib.optional (!openclSupport) "-DOpenCL_ENABLE=OFF";
nativeBuildInputs = [ cmake ];
buildInputs =
[ libmicrohttpd openssl opencl-headers ocl-icd hwloc ]
++ lib.optional cudaSupport cudatoolkit;
buildInputs = [ libmicrohttpd openssl hwloc ]
++ lib.optional cudaSupport cudatoolkit
++ lib.optionals openclSupport [ opencl-headers ocl-icd ];
postPatch = ''
substituteInPlace xmrstak/donate-level.hpp \