18 inherit (darwin.apple_sdk.frameworks) Foundation;
20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
28 sha256 = "sha256-e/QXwRVtgl9+BaKbkeztCPfXORhef1HaKBPzKvVPVpM=";
29 fetchSubmodules = true;
32 nativeBuildInputs = [ cmake pkg-config ];
33 buildInputs = [ libuv zeromq libsodium gss hwloc openssl curl ]
34 ++ lib.optionals stdenv.isDarwin [ Foundation ];
36 cmakeFlags = ["-DWITH_LTO=OFF"];
41 install -vD p2pool $out/bin/p2pool
47 updateScript = nix-update-script { };
51 description = "Decentralized pool for Monero mining";
52 homepage = "https://github.com/SChernykh/p2pool";
53 license = licenses.gpl3Only;
54 maintainers = with maintainers; [ ratsclub ];