summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2008-03-03 12:30:39 +0000
committerMichael Raskin <7c6f434c@mail.ru>2008-03-03 12:30:39 +0000
commit9f393398e2678e6ad906d39b9154bd88efb9fc99 (patch)
treefe11541ce0eeac0085dd1b8a8b72bf2c136d3a27 /pkgs/tools
parentf30f36104b92f4e578157c003ea93f05409353e6 (diff)
Added Shamir Secret Sharing Scheme and bmrsa. Fixed libgcrypt
svn path=/nixpkgs/trunk/; revision=10928
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/security/bmrsa/11.nix32
-rw-r--r--pkgs/tools/security/ssss/0.5.nix31
2 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/tools/security/bmrsa/11.nix b/pkgs/tools/security/bmrsa/11.nix
new file mode 100644
index 000000000000..dd1b8831bb79
--- /dev/null
+++ b/pkgs/tools/security/bmrsa/11.nix
@@ -0,0 +1,32 @@
+args : with args; with builderDefs {src="";} null;
+ let localDefs = builderDefs (rec {
+ src = /* put a fetchurl here */
+ fetchurl {
+ url = http://prdownloads.sourceforge.net/sourceforge/bmrsa/bmrsa11.zip;
+ sha256 = "0ksd9xkvm9lkvj4yl5sl0zmydp1wn3xhc55b28gj70gi4k75kcl4";
+ };
+
+ buildInputs = [unzip];
+ configureFlags = [];
+ doUnpack = FullDepEntry (''
+ mkdir bmrsa
+ cd bmrsa
+ unzip ${src}
+ sed -e 's/gcc/g++/' -i Makefile
+ ensureDir $out/bin
+ echo -e 'install:\n\tcp bmrsa '$out'/bin' >> Makefile
+ '') ["minInit" "addInputs" "defEnsureDir"];
+ }) null; /* null is a terminator for sumArgs */
+ in with localDefs;
+stdenv.mkDerivation rec {
+ name = "bmrsa-"+version;
+ builder = writeScript (name + "-builder")
+ (textClosure localDefs
+ [doMakeInstall doForceShare doPropagate]);
+ meta = {
+ description = "
+ RSA utility.
+";
+ inherit src;
+ };
+}
diff --git a/pkgs/tools/security/ssss/0.5.nix b/pkgs/tools/security/ssss/0.5.nix
new file mode 100644
index 000000000000..eedb788c777d
--- /dev/null
+++ b/pkgs/tools/security/ssss/0.5.nix
@@ -0,0 +1,31 @@
+args : with args; with builderDefs {src="";} null;
+ let localDefs = builderDefs (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"];
+ }) null; /* null is a terminator for sumArgs */
+ in with localDefs;
+stdenv.mkDerivation rec {
+ name = "ssss-"+version;
+ builder = writeScript (name + "-builder")
+ (textClosure localDefs
+ ["doPatch" doMakeInstall doForceShare doPropagate]);
+ meta = {
+ description = "
+ Shamir Secret Sharing Scheme
+";
+ inherit src;
+ };
+}