mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
606560fd7d
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/xmrig-proxy/versions.
35 lines
948 B
Nix
35 lines
948 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, libuuid
|
|
, donateLevel ? 0
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "xmrig-proxy-${version}";
|
|
version = "2.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xmrig";
|
|
repo = "xmrig-proxy";
|
|
rev = "v${version}";
|
|
sha256 = "0h6ihrrkgwi8k642iqq13qx3zlxl9r8q7wm417hb7j35rnmwn8lq";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|