1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/applications/misc/xmrig/proxy.nix
R. RyanTM 5f583fda04 xmrig-proxy: 2.5.2 -> 2.6.2 (#41032)
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.

These checks were done:

- built on NixOS
- /nix/store/q9nnn2j5k9kmfayiairp8l3mjdcz228k-xmrig-proxy-2.6.2/bin/xmrig-proxy passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 2.6.2 with grep in /nix/store/q9nnn2j5k9kmfayiairp8l3mjdcz228k-xmrig-proxy-2.6.2
- directory tree listing: https://gist.github.com/9498722348ccc1f87735df50817a78ac
- du listing: https://gist.github.com/c7381fd089088b8620cf7e6675c96a83
2018-05-28 14:40:33 +02:00

35 lines
948 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, libuuid
, donateLevel ? 0
}:
stdenv.mkDerivation rec {
name = "xmrig-proxy-${version}";
version = "2.6.2";
src = fetchFromGitHub {
owner = "xmrig";
repo = "xmrig-proxy";
rev = "v${version}";
sha256 = "1yfbdgyd37r5vb2g8jz4i92hxang3hbiig5y4507v9hr75jvfivh";
};
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 ];
};
}