1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "http://tthsum.devs.nu/pkg/tthsum-${version}.tar.bz2";
9 sha256 = "0z6jq8lbg9rasv98kxfs56936dgpgzsg3yc9k52878qfw1l2bp59";
13 mkdir -p $out/bin $out/share/man/man1
14 cp share/tthsum.1.gz $out/share/man/man1
15 cp obj-unix/tthsum $out/bin
18 doCheck = !stdenv.hostPlatform.isDarwin;
21 broken = stdenv.hostPlatform.isDarwin;
22 description = "Md5sum-alike program that works with Tiger/THEX hashes";
24 tthsum generates or checks TTH checksums (root of the THEX hash
25 tree). The Merkle Hash Tree, invented by Ralph Merkle, is a hash
26 construct that exhibits desirable properties for verifying the
27 integrity of files and file subranges in an incremental or
28 out-of-order fashion. tthsum uses the Tiger hash algorithm for
29 both the internal and the leaf nodes.
31 The specification of the Tiger hash algorithm is at:
32 http://www.cs.technion.ac.il/~biham/Reports/Tiger/
34 The specification of the THEX algorithm is at:
35 http://adc.sourceforge.net/draft-jchapweske-thex-02.html
37 homepage = "http://tthsum.devs.nu/";
38 license = licenses.gpl3Plus;
39 maintainers = [ maintainers.ebzzry ];
40 platforms = platforms.unix;
41 mainProgram = "tthsum";