···1+{ stdenv, fetchFromGitHub, libtool, which }:
2+3+stdenv.mkDerivation rec {
4+ pname = "sha1collisiondetection";
5+ version = "1.0.1";
6+ name = "${pname}-${version}";
7+8+ src = fetchFromGitHub {
9+ owner = "cr-marcstevens";
10+ repo = pname;
11+ rev = "development-v${version}";
12+ sha256 = "09vd5mgclcdx7yq3kwzxy1z7pbxcp0xljfly7hy4ixahmnn290h6";
13+ };
14+15+ makeFlags = [ "PREFIX=$(out)" ];
16+17+ doCheck = true;
18+19+ nativeBuildInputs = [ libtool which ];
20+21+ meta = with stdenv.lib; {
22+ description = "Library and command line tool to detect SHA-1 collision";
23+ longDescription = ''
24+ This library and command line tool were designed as near drop-in
25+ replacements for common SHA-1 libraries and sha1sum. They will
26+ compute the SHA-1 hash of any given file and additionally will
27+ detect cryptanalytic collision attacks against SHA-1 present in
28+ each file. It is very fast and takes less than twice the amount
29+ of time as regular SHA-1.
30+ '';
31+ platforms = platforms.all;
32+ maintainers = with maintainers; [ leenaars ];
33+ license = licenses.mit;
34+ };
35+}