mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
872 B
Nix
38 lines
872 B
Nix
{ stdenv, fetchFromGitHub, openssl, lib }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "hashpump";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bwall";
|
|
repo = "HashPump";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-xL/1os17agwFtdq0snS3ZJzwJhk22ujxfWLH65IMMEM=";
|
|
};
|
|
|
|
makeFlags = [ "INSTALLLOCATION=${placeholder "out"}/bin/" ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
doCheck = true;
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
./hashpump --test
|
|
runHook postCheck
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tool to exploit the hash length extension attack in various hashing algorithms";
|
|
homepage = "https://github.com/bwall/HashPump";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ t4ccer ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "hashpump";
|
|
};
|
|
})
|