nixpkgs/pkgs/tools/security/seccure/0.4.nix
Sander van der Burg 71c0fb9532 Upgraded seccure 0.3 to 0.4 because the old version expression does not work anymore and breaks my installation
svn path=/nixpkgs/branches/stdenv-updates/; revision=15222
2009-04-21 19:38:35 +00:00

27 lines
814 B
Nix

args : with args; with builderDefs;
let localDefs = builderDefs.passthru.function ((rec {
src = /* put a fetchurl here */
fetchurl {
url = http://point-at-infinity.org/seccure/seccure-0.4.tar.gz;
sha256 = "33d690a7034ee349bce4911a8b7c73e6e3cd13a140f429e9e628d5cd5a3bb955";
};
buildInputs = [libgcrypt];
configureFlags = [];
doPatch = FullDepEntry (''
sed -e s@/usr/@$out/@g -i Makefile
ensureDir $out/bin $out/share/man/man1
'') ["minInit" "doUnpack" "defEnsureDir"];
}) // args);
in with localDefs;
stdenv.mkDerivation rec {
name = "seccure-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
["doPatch" doMakeInstall doForceShare doPropagate]);
meta = {
description = "Zero-configuration elliptic curve cryptography utility";
inherit src;
};
}