xmr-stak: fix evaluation with nix 1.11

This commit is contained in:
Franz Pletz 2017-12-11 09:42:44 +01:00
parent f336bd43d2
commit d1c9beebdb
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
, opencl-headers, ocl-icd, hwloc, cudatoolkit
, devDonationLevel ? 0.0
, devDonationLevel ? "0.0"
, cudaSupport ? false # doesn't work currently
}:
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace xmrstak/donate-level.hpp \
--replace 'fDevDonationLevel = 2.0' 'fDevDonationLevel = ${toString devDonationLevel}'
--replace 'fDevDonationLevel = 2.0' 'fDevDonationLevel = ${devDonationLevel}'
'';
meta = with lib; {