xmrig-proxy: init at 2.5.2

This commit is contained in:
Ivan Jager 2018-04-09 07:00:42 -05:00
parent 1034aa8e9c
commit e30f55f6d2
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, libuuid
, donateLevel ? 0
}:
stdenv.mkDerivation rec {
name = "xmrig-proxy-${version}";
version = "2.5.2";
src = fetchFromGitHub {
owner = "xmrig";
repo = "xmrig-proxy";
rev = "v${version}";
sha256 = "1x10mrr58lc207zppzkjnhwah83kpxrqpa3idv01lyasv8mfkxzc";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libuv libmicrohttpd libuuid ];
postPatch = ''
substituteInPlace src/donate.h --replace "kDonateLevel = 2;" "kDonateLevel = ${toString donateLevel};"
'';
installPhase = ''
install -vD xmrig-proxy $out/bin/xmrig-proxy
'';
meta = with lib; {
description = "Monero (XMR) Stratum protocol proxy";
homepage = "https://github.com/xmrig/xmrig-proxy";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ aij ];
};
}

View File

@ -16790,6 +16790,8 @@ with pkgs;
xmrig = callPackage ../applications/misc/xmrig { };
xmrig-proxy = callPackage ../applications/misc/xmrig-proxy { };
monkeysAudio = callPackage ../applications/audio/monkeys-audio { };
monkeysphere = callPackage ../tools/security/monkeysphere { };