···11+{ stdenv, fetchFromGitHub, libtool, which }:
22+33+stdenv.mkDerivation rec {
44+ pname = "sha1collisiondetection";
55+ version = "1.0.1";
66+ name = "${pname}-${version}";
77+88+ src = fetchFromGitHub {
99+ owner = "cr-marcstevens";
1010+ repo = pname;
1111+ rev = "development-v${version}";
1212+ sha256 = "09vd5mgclcdx7yq3kwzxy1z7pbxcp0xljfly7hy4ixahmnn290h6";
1313+ };
1414+1515+ makeFlags = [ "PREFIX=$(out)" ];
1616+1717+ doCheck = true;
1818+1919+ nativeBuildInputs = [ libtool which ];
2020+2121+ meta = with stdenv.lib; {
2222+ description = "Library and command line tool to detect SHA-1 collision";
2323+ longDescription = ''
2424+ This library and command line tool were designed as near drop-in
2525+ replacements for common SHA-1 libraries and sha1sum. They will
2626+ compute the SHA-1 hash of any given file and additionally will
2727+ detect cryptanalytic collision attacks against SHA-1 present in
2828+ each file. It is very fast and takes less than twice the amount
2929+ of time as regular SHA-1.
3030+ '';
3131+ platforms = platforms.all;
3232+ maintainers = with maintainers; [ leenaars ];
3333+ license = licenses.mit;
3434+ };
3535+}