nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "tthsum";
9 version = "1.3.2";
10
11 src = fetchurl {
12 url = "http://tthsum.devs.nu/pkg/tthsum-${finalAttrs.version}.tar.bz2";
13 sha256 = "0z6jq8lbg9rasv98kxfs56936dgpgzsg3yc9k52878qfw1l2bp59";
14 };
15
16 installPhase = ''
17 mkdir -p $out/bin $out/share/man/man1
18 cp share/tthsum.1.gz $out/share/man/man1
19 cp obj-unix/tthsum $out/bin
20 '';
21
22 doCheck = !stdenv.hostPlatform.isDarwin;
23
24 meta = {
25 broken = stdenv.hostPlatform.isDarwin;
26 description = "Md5sum-alike program that works with Tiger/THEX hashes";
27 longDescription = ''
28 tthsum generates or checks TTH checksums (root of the THEX hash
29 tree). The Merkle Hash Tree, invented by Ralph Merkle, is a hash
30 construct that exhibits desirable properties for verifying the
31 integrity of files and file subranges in an incremental or
32 out-of-order fashion. tthsum uses the Tiger hash algorithm for
33 both the internal and the leaf nodes.
34
35 The specification of the Tiger hash algorithm is at:
36 http://www.cs.technion.ac.il/~biham/Reports/Tiger/
37
38 The specification of the THEX algorithm is at:
39 http://adc.sourceforge.net/draft-jchapweske-thex-02.html
40 '';
41 homepage = "http://tthsum.devs.nu/";
42 license = lib.licenses.gpl3Plus;
43 platforms = lib.platforms.unix;
44 mainProgram = "tthsum";
45 };
46})