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 {
|
2008-07-30 15:41:01 +02:00
|
|
|
url = http://freshmeat.net/redir/seccure/65485/url_tgz/seccure-0.3.tar.gz;
|
2008-03-03 11:48:29 +01:00
|
|
|
sha256 = "0isah96p35yxm86dklmgmdkvpflqi2aj4k344jp57chrhg5av74d";
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|