mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tthsum";
|
|
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
|
|
'';
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
description = "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;
|
|
mainProgram = "tthsum";
|
|
};
|
|
}
|