summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2008-03-03 10:48:29 +0000
committerMichael Raskin <7c6f434c@mail.ru>2008-03-03 10:48:29 +0000
commit25f81f6438d973d57bedbab7db5295ae2ddb6ac4 (patch)
tree1d7e23d146c43aa28581e00c2472887f9fc1ce2b
parent70ac99975d7398e2cc215a072325868a06f02b9d (diff)
downloadnixpkgs-25f81f6438d973d57bedbab7db5295ae2ddb6ac4.tar
nixpkgs-25f81f6438d973d57bedbab7db5295ae2ddb6ac4.tar.gz
nixpkgs-25f81f6438d973d57bedbab7db5295ae2ddb6ac4.tar.bz2
nixpkgs-25f81f6438d973d57bedbab7db5295ae2ddb6ac4.tar.lz
nixpkgs-25f81f6438d973d57bedbab7db5295ae2ddb6ac4.tar.xz
nixpkgs-25f81f6438d973d57bedbab7db5295ae2ddb6ac4.tar.zst
nixpkgs-25f81f6438d973d57bedbab7db5295ae2ddb6ac4.zip
Added SECCURE - Elliptic Curve Cryptography zero-configuration command-line tool. Note: needs to be setuid, because loves to lock memory.
svn path=/nixpkgs/trunk/; revision=10926
-rw-r--r--pkgs/tools/security/seccure/0.3.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/security/seccure/0.3.nix b/pkgs/tools/security/seccure/0.3.nix
new file mode 100644
index 00000000000..2b8dbdfec8f
--- /dev/null
+++ b/pkgs/tools/security/seccure/0.3.nix
@@ -0,0 +1,28 @@
+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;
+			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"];
+	}) 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;
+	};
+}