overlay: add SimpleYggGen-CPP yggdrasil miner

This commit is contained in:
Ehmry - 2022-01-13 21:08:53 +01:00
parent 7486153420
commit f4a8870632
2 changed files with 19 additions and 0 deletions

View File

@ -16,4 +16,6 @@ final: prev:
readsb = prev.callPackage ./readsb.nix { };
plume = prev.callPackage ./plume { };
SimpleYggGen-CPP = prev.callPackage ./simpleygggen.nix { };
}

17
overlay/simpleygggen.nix Normal file
View File

@ -0,0 +1,17 @@
{ lib, stdenv, fetchurl, cmake, libsodium, }:
stdenv.mkDerivation rec {
pname = "SimpleYggGen-CPP";
version = "5.1";
src = fetchurl {
url = "https://notabug.org/acetone/${pname}/archive/${version}.tar.gz";
hash = "sha256-z5Wtmw2vq3qRjNSOJ0xlxdmB5g2Oa+UQn1Awt7+R/XY=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libsodium ];
installPhase = ''
find .
install -D src/sygcpp $out/bin/$pname
'';
meta.maintainers = [ lib.maintainers.ehmry ];
}