nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 70 lines 1.2 kB view raw
1{ 2 stdenv, 3 cmake, 4 curl, 5 fetchFromGitHub, 6 gss, 7 hwloc, 8 lib, 9 libsodium, 10 libuv, 11 nix-update-script, 12 openssl, 13 pkg-config, 14 zeromq, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "p2pool"; 19 version = "4.13"; 20 21 src = fetchFromGitHub { 22 owner = "SChernykh"; 23 repo = "p2pool"; 24 rev = "v${finalAttrs.version}"; 25 hash = "sha256-HeimLu3KomXVEnd8ChnfsDm0Y48yablLheJQ/yfIl7o="; 26 fetchSubmodules = true; 27 }; 28 29 nativeBuildInputs = [ 30 cmake 31 pkg-config 32 ]; 33 buildInputs = [ 34 libuv 35 zeromq 36 libsodium 37 gss 38 hwloc 39 openssl 40 curl 41 ]; 42 43 cmakeFlags = [ "-DWITH_LTO=OFF" ]; 44 45 installPhase = '' 46 runHook preInstall 47 48 install -vD p2pool $out/bin/p2pool 49 50 runHook postInstall 51 ''; 52 53 passthru = { 54 updateScript = nix-update-script { }; 55 }; 56 57 meta = { 58 description = "Decentralized pool for Monero mining"; 59 homepage = "https://github.com/SChernykh/p2pool"; 60 license = lib.licenses.gpl3Only; 61 maintainers = with lib.maintainers; [ 62 ratsclub 63 JacoMalan1 64 jk 65 ]; 66 mainProgram = "p2pool"; 67 platforms = lib.platforms.all; 68 broken = stdenv.hostPlatform.isDarwin; 69 }; 70})