sha1collisiondetection: init at 1.0.1

Closes https://github.com/NixOS/nixpkgs/pull/23114

authored by Michiel Leenaars and committed by Joachim Fasting b5bb83b2 ceb85af9

+37
+35
pkgs/tools/security/sha1collisiondetection/default.nix
··· 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 + }
+2
pkgs/top-level/all-packages.nix
··· 3825 3825 3826 3826 sg3_utils = callPackage ../tools/system/sg3_utils { }; 3827 3827 3828 + sha1collisiondetection = callPackage ../tools/security/sha1collisiondetection { }; 3829 + 3828 3830 shadowsocks-libev = callPackage ../tools/networking/shadowsocks-libev { }; 3829 3831 3830 3832 sharutils = callPackage ../tools/archivers/sharutils { };