mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
52 lines
946 B
Nix
52 lines
946 B
Nix
{ stdenv
|
|
, cmake
|
|
, curl
|
|
, fetchFromGitHub
|
|
, gss
|
|
, hwloc
|
|
, lib
|
|
, libsodium
|
|
, libuv
|
|
, nix-update-script
|
|
, openssl
|
|
, pkg-config
|
|
, zeromq
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "p2pool";
|
|
version = "2.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SChernykh";
|
|
repo = "p2pool";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-iDswjKDGii1OnMmdhiisbwuWjs7omNOF+tubJLs69qY=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ libuv zeromq libsodium gss hwloc openssl curl ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -vD p2pool $out/bin/p2pool
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Decentralized pool for Monero mining";
|
|
homepage = "https://github.com/SChernykh/p2pool";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ratsclub ];
|
|
};
|
|
}
|