19 inherit (darwin.apple_sdk.frameworks) Foundation;
21 stdenv.mkDerivation rec {
25 src = fetchFromGitHub {
29 hash = "sha256-zowRQeFrT0sY9L5XJQ10f8tRnEchjKVdBixtPbAQyvo=";
30 fetchSubmodules = true;
45 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Foundation ];
47 cmakeFlags = [ "-DWITH_LTO=OFF" ];
49 env.NIX_CFLAGS_COMPILE = toString (
51 (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13")
53 "-faligned-allocation"
60 install -vD p2pool $out/bin/p2pool
66 updateScript = nix-update-script { };
70 description = "Decentralized pool for Monero mining";
71 homepage = "https://github.com/SChernykh/p2pool";
72 license = licenses.gpl3Only;
73 maintainers = with maintainers; [ ratsclub ];
74 mainProgram = "p2pool";
75 platforms = platforms.all;