Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 perl, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "apache-users"; 10 version = "2.1"; 11 12 src = fetchurl { 13 url = "https://labs.portcullis.co.uk/download/apache_users-${finalAttrs.version}.tar.gz"; 14 hash = "sha256-rylW4F8Si6KKYxaxEJlVFnbLqfqS6ytMPfHpc8MgriA="; 15 }; 16 17 # Allow optional arguments where defaults are provided 18 patches = [ ./optional-args.patch ]; 19 20 postPatch = '' 21 substituteAllInPlace apache${finalAttrs.version}.pl 22 ''; 23 24 buildInputs = [ 25 (perl.withPackages (p: [ 26 p.ParallelForkManager 27 p.LWP 28 ])) 29 ]; 30 31 installPhase = '' 32 runHook preInstall 33 34 install -D apache${finalAttrs.version}.pl $out/bin/apache-users 35 install -Dm444 names $out/share/apache-users/names 36 37 runHook postInstall 38 ''; 39 40 meta = with lib; { 41 description = "Username Enumeration through Apache UserDir"; 42 homepage = "https://labs.portcullis.co.uk/downloads/"; 43 license = licenses.gpl2Plus; 44 maintainers = with maintainers; [ emilytrau ]; 45 mainProgram = "apache-users"; 46 }; 47})