nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 932 B view raw
1{ 2 stdenv, 3 fetchzip, 4 openssl, 5 lib, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "hashpump"; 10 version = "1.2.0"; 11 12 # Github repository got removed 13 src = fetchzip { 14 url = "https://web.archive.org/web/20201018005212/https://github.com/bwall/HashPump/archive/v1.20.tar.gz"; 15 hash = "sha256-xL/1os17agwFtdq0snS3ZJzwJhk22ujxfWLH65IMMEM="; 16 }; 17 18 makeFlags = [ "INSTALLLOCATION=${placeholder "out"}/bin/" ]; 19 20 buildInputs = [ openssl ]; 21 22 doCheck = true; 23 checkPhase = '' 24 runHook preCheck 25 ./hashpump --test 26 runHook postCheck 27 ''; 28 29 preInstall = '' 30 mkdir -p $out/bin 31 ''; 32 33 meta = { 34 description = "Tool to exploit the hash length extension attack in various hashing algorithms"; 35 homepage = "https://github.com/bwall/HashPump"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ t4ccer ]; 38 platforms = lib.platforms.linux; 39 mainProgram = "hashpump"; 40 }; 41})