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 11:48:29 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
2009-04-21 21:38:35 +02:00
|
|
|
url = http://point-at-infinity.org/seccure/seccure-0.4.tar.gz;
|
|
|
|
sha256 = "33d690a7034ee349bce4911a8b7c73e6e3cd13a140f429e9e628d5cd5a3bb955";
|
2008-03-03 11:48:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [libgcrypt];
|
|
|
|
configureFlags = [];
|
|
|
|
doPatch = FullDepEntry (''
|
|
|
|
sed -e s@/usr/@$out/@g -i Makefile
|
|
|
|
ensureDir $out/bin $out/share/man/man1
|
|
|
|
'') ["minInit" "doUnpack" "defEnsureDir"];
|
2008-08-19 07:54:09 +02:00
|
|
|
}) // args);
|
2008-03-03 11:48:29 +01:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "seccure-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
["doPatch" doMakeInstall doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "Zero-configuration elliptic curve cryptography utility";
|
2008-03-03 11:48:29 +01:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|