mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
29 lines
630 B
Nix
29 lines
630 B
Nix
{
|
|
description = "Decentralized pool for Monero mining.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }: {
|
|
packages.x86_64-linux.p2pool = with import nixpkgs { system = "x86_64-linux";}; stdenv.mkDerivation {
|
|
pname = "p2pool";
|
|
version = "0.0.1";
|
|
src = self;
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
libuv zeromq
|
|
libsodium gss
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -r ./p2pool $out/bin/
|
|
'';
|
|
};
|
|
|
|
defaultPackage.x86_64-linux = self.packages.x86_64-linux.p2pool;
|
|
};
|
|
}
|