2010-07-29 20:55:16 +02:00
|
|
|
{ stdenv, fetchurl, gmp }:
|
2008-03-03 13:30:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-07-29 20:55:16 +02:00
|
|
|
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
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2010-07-29 20:55:16 +02:00
|
|
|
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/;
|
|
|
|
};
|
2008-03-03 13:30:39 +01:00
|
|
|
}
|