2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, gmp }:
|
2008-03-03 12:30:39 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-07-29 18:55:16 +00:00
|
|
|
name = "ssss-0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://point-at-infinity.org/ssss/ssss-0.5.tar.gz";
|
2010-07-29 18:55:16 +00:00
|
|
|
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
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2010-07-29 18:55:16 +00:00
|
|
|
echo -e 'install:\n\tcp ssss-combine ssss-split '"$out"'/bin' >>Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Shamir Secret Sharing Scheme";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://point-at-infinity.org/ssss/";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl2;
|
2010-07-29 18:55:16 +00:00
|
|
|
};
|
2008-03-03 12:30:39 +00:00
|
|
|
}
|