nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

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