3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/p2pool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
932 B
Nix
Raw Normal View History

2021-11-19 12:43:28 +00:00
{ stdenv
, cmake
, fetchFromGitHub
, gss
, hwloc
, lib
, libsodium
, libuv
2022-02-02 10:46:13 +00:00
, nix-update-script
2021-11-19 12:43:28 +00:00
, openssl
, pkg-config
, zeromq
}:
stdenv.mkDerivation rec {
pname = "p2pool";
2022-02-28 15:03:09 +00:00
version = "1.8";
2021-11-19 12:43:28 +00:00
src = fetchFromGitHub {
owner = "SChernykh";
repo = "p2pool";
rev = "v${version}";
2022-02-28 15:03:09 +00:00
sha256 = "sha256-cQd3dtih7C+pEmkvlrsYTJtQWBVVMiFbtNQUM0Ck3tg=";
2021-11-19 12:43:28 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libuv zeromq libsodium gss hwloc openssl ];
installPhase = ''
runHook preInstall
install -vD p2pool $out/bin/p2pool
runHook postInstall
'';
2022-02-02 10:46:13 +00:00
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
2021-11-19 12:43:28 +00:00
meta = with lib; {
description = "Decentralized pool for Monero mining";
homepage = "https://github.com/SChernykh/p2pool";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ratsclub ];
};
}