From 03fbb136f410f642d162d3f7749c35b46b2e13b6 Mon Sep 17 00:00:00 2001 From: Ahmed Kamal Date: Sun, 18 Aug 2019 16:37:01 +0200 Subject: [PATCH 1/2] xmrig-proxy: 2.14.4 -> 3.0.0 --- pkgs/applications/misc/xmrig/proxy.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/xmrig/proxy.nix b/pkgs/applications/misc/xmrig/proxy.nix index 4922d3c6aed1..d713f74a7994 100644 --- a/pkgs/applications/misc/xmrig/proxy.nix +++ b/pkgs/applications/misc/xmrig/proxy.nix @@ -4,13 +4,13 @@ stdenv.mkDerivation rec { name = "xmrig-proxy-${version}"; - version = "2.14.4"; + version = "3.0.0"; src = fetchFromGitHub { owner = "xmrig"; repo = "xmrig-proxy"; rev = "v${version}"; - sha256 = "11q4w5ncyyf2vgrb64zlr01n3adyaxja2pcqm5id9if0nvwwn4ga"; + sha256 = "19rv5zmxwr3kmb2m3fas91aq1493cnkhvs88zcflnijr1ra218ks"; }; nativeBuildInputs = [ cmake ]; From 18e615a7a5330e7872d793a61d6333a8aa213b3d Mon Sep 17 00:00:00 2001 From: Ahmed Kamal Date: Sun, 18 Aug 2019 16:40:31 +0200 Subject: [PATCH 2/2] remove kDefaultDonateLevel patch, upstream now defaults it to zero --- pkgs/applications/misc/xmrig/proxy.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/applications/misc/xmrig/proxy.nix b/pkgs/applications/misc/xmrig/proxy.nix index d713f74a7994..18eb2189f2c0 100644 --- a/pkgs/applications/misc/xmrig/proxy.nix +++ b/pkgs/applications/misc/xmrig/proxy.nix @@ -17,10 +17,6 @@ stdenv.mkDerivation rec { buildInputs = [ libuv libmicrohttpd libuuid openssl ]; postPatch = '' - # Set default donation level to 0%. Can be increased at runtime via --donate-level option. - substituteInPlace src/donate.h \ - --replace "kDefaultDonateLevel = 2;" "kDefaultDonateLevel = ${toString donateLevel};" - # Link dynamically against libuuid instead of statically substituteInPlace CMakeLists.txt --replace uuid.a uuid '';