Files
nixpkgs/pkgs/by-name/ap/apache-users/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
perl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "apache-users";
version = "2.1";
src = fetchurl {
url = "https://labs.portcullis.co.uk/download/apache_users-${finalAttrs.version}.tar.gz";
hash = "sha256-rylW4F8Si6KKYxaxEJlVFnbLqfqS6ytMPfHpc8MgriA=";
};
# Allow optional arguments where defaults are provided
patches = [ ./optional-args.patch ];
postPatch = ''
substituteAllInPlace apache${finalAttrs.version}.pl
'';
buildInputs = [
(perl.withPackages (p: [
p.ParallelForkManager
p.LWP
]))
];
installPhase = ''
runHook preInstall
install -D apache${finalAttrs.version}.pl $out/bin/apache-users
install -Dm444 names $out/share/apache-users/names
runHook postInstall
'';
meta = with lib; {
description = "Username Enumeration through Apache UserDir";
homepage = "https://labs.portcullis.co.uk/downloads/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ emilytrau ];
mainProgram = "apache-users";
};
})