mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
xmrig: init at 2.5.2
This commit is contained in:
parent
d12daee695
commit
5d86c50057
33
pkgs/applications/misc/xmrig/default.nix
Normal file
33
pkgs/applications/misc/xmrig/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd
|
||||
, donateLevel ? 0
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xmrig-${version}";
|
||||
version = "2.5.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xmrig";
|
||||
repo = "xmrig";
|
||||
rev = "v${version}";
|
||||
sha256 = "1jc6vzqdl85pmiw5qv9b148kfw4k4wxn90ggylxfpfdv7czamh2c";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libuv libmicrohttpd ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/donate.h --replace "kDonateLevel = 5;" "kDonateLevel = ${toString donateLevel};"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -vD xmrig $out/bin/xmrig
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Monero (XMR) CPU miner";
|
||||
homepage = "https://github.com/xmrig/xmrig";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
};
|
||||
}
|
|
@ -16699,6 +16699,8 @@ with pkgs;
|
|||
hwloc = hwloc-nox;
|
||||
};
|
||||
|
||||
xmrig = callPackage ../applications/misc/xmrig { };
|
||||
|
||||
monkeysAudio = callPackage ../applications/audio/monkeys-audio { };
|
||||
|
||||
monkeysphere = callPackage ../tools/security/monkeysphere { };
|
||||
|
|
Loading…
Reference in a new issue