aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/security/seccure/0.3.nix
blob: 0ddff073ad6d82becaacacc1a59f9f4d37198bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
args : with args; with builderDefs {src="";} null;
	let localDefs = builderDefs (rec {
		src = /* put a fetchurl here */
		fetchurl {
#			url = http://freshmeat.net/redir/seccure/65485/url_tgz/seccure-0.3.tar.gz;
			url = http://ftp.ussg.iu.edu/FreeBSD/distfiles/seccure-0.3.tar.gz;
			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"];
	}) args null; /* null is a terminator for sumArgs */
	in with localDefs;
stdenv.mkDerivation rec {
	name = "seccure-"+version;
	builder = writeScript (name + "-builder")
		(textClosure localDefs 
			["doPatch" doMakeInstall doForceShare doPropagate]);
	meta = {
		description = "
		Elliptic Curve Cryptography. Zero-configuration.
";
		inherit src;
	};
}