mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Merge pull request #38669 from aij/xmrig-proxy-master
xmrig-proxy: init at 2.5.2
This commit is contained in:
commit
7decb0805e
34
pkgs/applications/misc/xmrig-proxy/default.nix
Normal file
34
pkgs/applications/misc/xmrig-proxy/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ 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 ];
|
||||
|
||||
# Set default donation level to 0%. Can be increased at runtime via --donate-level option.
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -16798,6 +16798,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user