Files
nixpkgs/pkgs/by-name/p2/p2pool/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.1 KiB
Nix

{
stdenv,
cmake,
curl,
fetchFromGitHub,
gss,
hwloc,
lib,
libsodium,
libuv,
nix-update-script,
openssl,
pkg-config,
zeromq,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "p2pool";
version = "4.10.1";
src = fetchFromGitHub {
owner = "SChernykh";
repo = "p2pool";
rev = "v${finalAttrs.version}";
hash = "sha256-oxUxgooIiesSyew8t/0asa/sEV4I8C+Firp5cLi0fnU=";
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 = {
description = "Decentralized pool for Monero mining";
homepage = "https://github.com/SChernykh/p2pool";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
ratsclub
JacoMalan1
jk
];
mainProgram = "p2pool";
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isDarwin;
};
})