2008-08-19 07:54:09 +02:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function (rec {
|
2008-03-03 13:30:39 +01: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 01:25:58 +02:00
|
|
|
doPatch = fullDepEntry (''
|
2008-03-03 13:30:39 +01: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 07:54:09 +02:00
|
|
|
});
|
2008-03-03 13:30:39 +01:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ssss-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
["doPatch" doMakeInstall doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "Shamir Secret Sharing Scheme";
|
2008-03-03 13:30:39 +01:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|