summary refs log tree commit diff
diff options
context:
space:
mode:
authorRommel M. Martinez <ebzzry@gmail.com>2015-09-18 02:50:48 +0800
committerRommel M. Martinez <ebzzry@gmail.com>2015-09-18 03:01:01 +0800
commit16ea769c0e550d6a0910e5251117ed19c623d57f (patch)
tree0db8dfb351fb9258016466b1d9b0500ab06f2734
parente8c1717ff488af06128210fba47d8ce917b53808 (diff)
downloadnixpkgs-16ea769c0e550d6a0910e5251117ed19c623d57f.tar
nixpkgs-16ea769c0e550d6a0910e5251117ed19c623d57f.tar.gz
nixpkgs-16ea769c0e550d6a0910e5251117ed19c623d57f.tar.bz2
nixpkgs-16ea769c0e550d6a0910e5251117ed19c623d57f.tar.lz
nixpkgs-16ea769c0e550d6a0910e5251117ed19c623d57f.tar.xz
nixpkgs-16ea769c0e550d6a0910e5251117ed19c623d57f.tar.zst
nixpkgs-16ea769c0e550d6a0910e5251117ed19c623d57f.zip
tthsum: init at 1.3.2
-rw-r--r--pkgs/applications/misc/tthsum/default.nix39
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/misc/tthsum/default.nix b/pkgs/applications/misc/tthsum/default.nix
new file mode 100644
index 00000000000..66bfcbcf4d9
--- /dev/null
+++ b/pkgs/applications/misc/tthsum/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "tthsum-${version}";
+  version = "1.3.2";
+
+  src = fetchurl {
+    url = "http://tthsum.devs.nu/pkg/tthsum-${version}.tar.bz2";
+    sha256 = "0z6jq8lbg9rasv98kxfs56936dgpgzsg3yc9k52878qfw1l2bp59";
+  };
+
+  installPhase = ''
+    mkdir -p $out/bin $out/share/man/man1
+    cp share/tthsum.1.gz $out/share/man/man1
+    cp obj-unix/tthsum $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    description = "An md5sum-alike program that works with Tiger/THEX hashes";
+    longDescription = ''
+      tthsum generates or checks TTH checksums (root of the THEX hash
+      tree). The Merkle Hash Tree, invented by Ralph Merkle, is a hash
+      construct that exhibits desirable properties for verifying the
+      integrity of files and file subranges in an incremental or
+      out-of-order fashion. tthsum uses the Tiger hash algorithm for
+      both the internal and the leaf nodes.
+
+      The specification of the Tiger hash algorithm is at:
+      http://www.cs.technion.ac.il/~biham/Reports/Tiger/
+
+      The specification of the THEX algorithm is at:
+      http://adc.sourceforge.net/draft-jchapweske-thex-02.html
+    '';
+    homepage = http://tthsum.devs.nu/;
+    license = licenses.gpl3Plus;
+    maintainers = [ maintainers.ebzzry ];
+    platforms = platforms.unix;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 19e29159399..39a40bf8fb7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3169,6 +3169,8 @@ let
 
   tpm-luks = callPackage ../tools/security/tpm-luks { };
 
+  tthsum = callPackage ../applications/misc/tthsum { };
+
   chaps = callPackage ../tools/security/chaps { };
 
   trace-cmd = callPackage ../os-specific/linux/trace-cmd { };