summary refs log tree commit diff
path: root/pkgs/tools/security/ssss/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-29 08:21:21 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-29 08:21:21 +0000
commitba498d4a43971c454a183e407e26e7803fbf8612 (patch)
tree9e5296c245def8938243bf91491031c4886cd09e /pkgs/tools/security/ssss/default.nix
parent41b7a3cda6f43f939920ec26bc0ce3a959125e19 (diff)
downloadnixlib-ba498d4a43971c454a183e407e26e7803fbf8612.tar
nixlib-ba498d4a43971c454a183e407e26e7803fbf8612.tar.gz
nixlib-ba498d4a43971c454a183e407e26e7803fbf8612.tar.bz2
nixlib-ba498d4a43971c454a183e407e26e7803fbf8612.tar.lz
nixlib-ba498d4a43971c454a183e407e26e7803fbf8612.tar.xz
nixlib-ba498d4a43971c454a183e407e26e7803fbf8612.tar.zst
nixlib-ba498d4a43971c454a183e407e26e7803fbf8612.zip
* composedArgsAndFun -> makeOverridable for consistency.
* Rename a few single-version packages to "default.nix".

svn path=/nixpkgs/trunk/; revision=22803
Diffstat (limited to 'pkgs/tools/security/ssss/default.nix')
-rw-r--r--pkgs/tools/security/ssss/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/security/ssss/default.nix b/pkgs/tools/security/ssss/default.nix
new file mode 100644
index 000000000000..15288361baf4
--- /dev/null
+++ b/pkgs/tools/security/ssss/default.nix
@@ -0,0 +1,29 @@
+args : with args; with builderDefs;
+	let localDefs = builderDefs.passthru.function (rec {
+		src = /* put a fetchurl here */
+		fetchurl {
+			url = http://point-at-infinity.org/ssss/ssss-0.5.tar.gz;
+			sha256 = "15grn2fp1x8p92kxkwbmsx8rz16g93y9grl3hfqbh1jn21ama5jx";
+		};
+
+		buildInputs = [gmp];
+		configureFlags = [];
+		doPatch = fullDepEntry (''
+			sed -e s@/usr/@$out/@g -i Makefile
+			cp ssss.manpage.xml ssss.1
+			cp ssss.manpage.xml ssss.1.html
+			ensureDir $out/bin $out/share/man/man1
+			echo -e 'install:\n\tcp ssss-combine ssss-split '"$out"'/bin' >>Makefile
+		'') ["minInit" "doUnpack" "defEnsureDir"];
+	});
+	in with localDefs;
+stdenv.mkDerivation rec {
+	name = "ssss-0.5";
+	builder = writeScript (name + "-builder")
+		(textClosure localDefs 
+			["doPatch" doMakeInstall doForceShare doPropagate]);
+	meta = {
+		description = "Shamir Secret Sharing Scheme";
+		inherit src;
+	};
+}