mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
xmr-stak: fix evaluation with nix 1.11
This commit is contained in:
parent
f336bd43d2
commit
d1c9beebdb
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
|
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
|
||||||
, opencl-headers, ocl-icd, hwloc, cudatoolkit
|
, opencl-headers, ocl-icd, hwloc, cudatoolkit
|
||||||
, devDonationLevel ? 0.0
|
, devDonationLevel ? "0.0"
|
||||||
, cudaSupport ? false # doesn't work currently
|
, cudaSupport ? false # doesn't work currently
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace xmrstak/donate-level.hpp \
|
substituteInPlace xmrstak/donate-level.hpp \
|
||||||
--replace 'fDevDonationLevel = 2.0' 'fDevDonationLevel = ${toString devDonationLevel}'
|
--replace 'fDevDonationLevel = 2.0' 'fDevDonationLevel = ${devDonationLevel}'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue