nixpkgs/pkgs/applications/misc/p2pool/default.nix

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

57 lines
1.0 KiB
Nix
Raw Normal View History

2021-11-19 12:43:28 +00:00
{ stdenv
, cmake
2022-08-14 11:47:29 +00:00
, curl
2021-11-19 12:43:28 +00:00
, 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
2023-01-23 04:38:09 +00:00
, darwin
2021-11-19 12:43:28 +00:00
}:
2023-01-23 04:38:09 +00:00
let
inherit (darwin.apple_sdk.frameworks) Foundation;
in
2021-11-19 12:43:28 +00:00
stdenv.mkDerivation rec {
pname = "p2pool";
2023-05-03 03:10:14 +00:00
version = "3.3";
2021-11-19 12:43:28 +00:00
src = fetchFromGitHub {
owner = "SChernykh";
repo = "p2pool";
rev = "v${version}";
2023-05-03 03:10:14 +00:00
sha256 = "sha256-sCG2Dr0gDznOyuSCVm/Zop+64elUZLt+XSDff2jQlwg=";
2021-11-19 12:43:28 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
2023-01-23 04:38:09 +00:00
buildInputs = [ libuv zeromq libsodium gss hwloc openssl curl ]
++ lib.optionals stdenv.isDarwin [ Foundation ];
2021-11-19 12:43:28 +00:00
2023-02-17 14:57:23 +00:00
cmakeFlags = ["-DWITH_LTO=OFF"];
2021-11-19 12:43:28 +00:00
installPhase = ''
runHook preInstall
install -vD p2pool $out/bin/p2pool
runHook postInstall
'';
2022-02-02 10:46:13 +00:00
passthru = {
updateScript = nix-update-script { };
2022-02-02 10:46:13 +00:00
};
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 ];
};
}