2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, gmp }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ssss-0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://point-at-infinity.org/ssss/ssss-0.5.tar.gz";
|
|
|
|
sha256 = "15grn2fp1x8p92kxkwbmsx8rz16g93y9grl3hfqbh1jn21ama5jx";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gmp ];
|
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
sed -e s@/usr/@$out/@g -i Makefile
|
|
|
|
cp ssss.manpage.xml ssss.1
|
|
|
|
cp ssss.manpage.xml ssss.1.html
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
echo -e 'install:\n\tcp ssss-combine ssss-split '"$out"'/bin' >>Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Shamir Secret Sharing Scheme";
|
|
|
|
homepage = "http://point-at-infinity.org/ssss/";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|