nixpkgs/pkgs/by-name/pa/padbuster/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

35 lines
839 B
Nix

{ lib, stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation rec {
pname = "padbuster";
version = "0.3.3";
src = fetchFromGitHub {
owner = "AonCyberLabs";
repo = pname;
rev = "50e4a3e2bf5dfff5699440b3ebc61ed1b5c49bbe";
sha256 = "VIvZ28MVnTSQru6l8flLVVqIIpxxXD8lCqzH81sPe/U=";
};
buildInputs = [
(perl.withPackages (ps: with ps; [ LWP LWPProtocolHttps CryptSSLeay ]))
];
installPhase = ''
runHook preInstall
install -Dm755 padBuster.pl $out/bin/padBuster.pl
runHook postInstall
'';
meta = with lib; {
description = "Automated script for performing Padding Oracle attacks";
homepage = "https://www.gdssecurity.com/l/t.php";
mainProgram = "padBuster.pl";
maintainers = with maintainers; [ emilytrau ];
license = licenses.asl20;
platforms = platforms.all;
};
}