2008-08-19 06:54:09 +01:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function (rec {
|
2008-03-03 12:30:39 +00:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://point-at-infinity.org/ssss/ssss-0.5.tar.gz;
|
|
|
|
sha256 = "15grn2fp1x8p92kxkwbmsx8rz16g93y9grl3hfqbh1jn21ama5jx";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [gmp];
|
|
|
|
configureFlags = [];
|
2009-05-20 00:25:58 +01:00
|
|
|
doPatch = fullDepEntry (''
|
2008-03-03 12:30:39 +00:00
|
|
|
sed -e s@/usr/@$out/@g -i Makefile
|
|
|
|
cp ssss.manpage.xml ssss.1
|
|
|
|
cp ssss.manpage.xml ssss.1.html
|
|
|
|
ensureDir $out/bin $out/share/man/man1
|
|
|
|
echo -e 'install:\n\tcp ssss-combine ssss-split '"$out"'/bin' >>Makefile
|
|
|
|
'') ["minInit" "doUnpack" "defEnsureDir"];
|
2008-08-19 06:54:09 +01:00
|
|
|
});
|
2008-03-03 12:30:39 +00:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
2009-11-18 09:39:59 +00:00
|
|
|
name = "ssss-0.5";
|
2008-03-03 12:30:39 +00:00
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
["doPatch" doMakeInstall doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Shamir Secret Sharing Scheme";
|
2008-03-03 12:30:39 +00:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|