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