mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
65 lines
1 KiB
Nix
65 lines
1 KiB
Nix
{
|
|
stdenv,
|
|
cmake,
|
|
curl,
|
|
fetchFromGitHub,
|
|
gss,
|
|
hwloc,
|
|
lib,
|
|
libsodium,
|
|
libuv,
|
|
nix-update-script,
|
|
openssl,
|
|
pkg-config,
|
|
zeromq,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "p2pool";
|
|
version = "4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SChernykh";
|
|
repo = "p2pool";
|
|
rev = "v${version}";
|
|
hash = "sha256-F8kgoGgnFk6vE1nNnV6TShwnEAnqxD1wbsCAnL7mHRM=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
libuv
|
|
zeromq
|
|
libsodium
|
|
gss
|
|
hwloc
|
|
openssl
|
|
curl
|
|
];
|
|
|
|
cmakeFlags = [ "-DWITH_LTO=OFF" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -vD p2pool $out/bin/p2pool
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Decentralized pool for Monero mining";
|
|
homepage = "https://github.com/SChernykh/p2pool";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ratsclub ];
|
|
mainProgram = "p2pool";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|