diff options
Diffstat (limited to 'pkgs/applications/misc/p2pool/default.nix')
-rw-r--r-- | pkgs/applications/misc/p2pool/default.nix | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/pkgs/applications/misc/p2pool/default.nix b/pkgs/applications/misc/p2pool/default.nix deleted file mode 100644 index 3d537afc1d2b..000000000000 --- a/pkgs/applications/misc/p2pool/default.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ stdenv -, cmake -, curl -, fetchFromGitHub -, gss -, hwloc -, lib -, libsodium -, libuv -, nix-update-script -, openssl -, pkg-config -, zeromq -, darwin -}: - -let - inherit (darwin.apple_sdk.frameworks) Foundation; -in -stdenv.mkDerivation rec { - pname = "p2pool"; - version = "4.1"; - - src = fetchFromGitHub { - owner = "SChernykh"; - repo = "p2pool"; - rev = "v${version}"; - hash = "sha256-eMg8DXFtVfYhl6vpg/KRUZUgMU/XsCS29Af1CSIbUsY="; - fetchSubmodules = true; - }; - - nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ libuv zeromq libsodium gss hwloc openssl curl ] - ++ lib.optionals stdenv.isDarwin [ Foundation ]; - - cmakeFlags = ["-DWITH_LTO=OFF"]; - - env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [ - "-faligned-allocation" - ]); - - installPhase = '' - runHook preInstall - - install -vD p2pool $out/bin/p2pool - - runHook postInstall - ''; - - passthru = { - updateScript = nix-update-script { }; - }; - - meta = with lib; { - description = "Decentralized pool for Monero mining"; - homepage = "https://github.com/SChernykh/p2pool"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ ratsclub ]; - mainProgram = "p2pool"; - platforms = platforms.all; - }; -} |