2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-09-17 18:50:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tthsum";
|
2015-09-17 18:50:48 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2019-04-23 02:49:34 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 13:28:44 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2015-09-17 18:50:48 +00:00
|
|
|
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
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://tthsum.devs.nu/";
|
2015-09-17 18:50:48 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|