xmr-stak: fix evaluation with nix 1.11

+2 -2
+2 -2
pkgs/applications/misc/xmr-stak/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl 2 2 , opencl-headers, ocl-icd, hwloc, cudatoolkit 3 - , devDonationLevel ? 0.0 3 + , devDonationLevel ? "0.0" 4 4 , cudaSupport ? false # doesn't work currently 5 5 }: 6 6 ··· 26 26 27 27 postPatch = '' 28 28 substituteInPlace xmrstak/donate-level.hpp \ 29 - --replace 'fDevDonationLevel = 2.0' 'fDevDonationLevel = ${toString devDonationLevel}' 29 + --replace 'fDevDonationLevel = 2.0' 'fDevDonationLevel = ${devDonationLevel}' 30 30 ''; 31 31 32 32 meta = with lib; {