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