Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
libuv,
|
|
libmicrohttpd,
|
|
openssl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xmrig-proxy";
|
|
version = "6.24.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xmrig";
|
|
repo = "xmrig-proxy";
|
|
rev = "v${version}";
|
|
hash = "sha256-4Kqxf9i5OTplWg72ihTJ4QHvwWC8r73EACErYNZ7wjc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Link dynamically against libraries instead of statically
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace uuid.a uuid
|
|
substituteInPlace cmake/OpenSSL.cmake \
|
|
--replace "set(OPENSSL_USE_STATIC_LIBS TRUE)" "set(OPENSSL_USE_STATIC_LIBS FALSE)"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
libuv
|
|
libmicrohttpd
|
|
openssl
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -vD xmrig-proxy $out/bin/xmrig-proxy
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Monero (XMR) Stratum protocol proxy";
|
|
mainProgram = "xmrig-proxy";
|
|
homepage = "https://github.com/xmrig/xmrig-proxy";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ aij ];
|
|
};
|
|
}
|