base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ad / ad-ldap-enum / package.nix
blob983746cbcbf907501597a88d8f87868cc062439c
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 , python3
5 }:
7 stdenvNoCC.mkDerivation {
8   pname = "ad-ldap-enum";
9   version = "0-unstable-2023-02-10";
10   src = fetchFromGitHub {
11     owner = "CroweCybersecurity";
12     repo = "ad-ldap-enum";
13     rev = "60bc5bb111e2708d4bc2157f9ae3d5e0d06ece75";
14     hash = "sha256-b77yWmZGyOSQSwnRhGqo501jO6XYd+qpx1pb+zkduVI=";
15   };
17   buildInputs = [
18     (python3.withPackages (ps: with ps; [
19       argcomplete
20       ldap3
21       openpyxl
22     ]))
23   ];
25   installPhase = ''
26     runHook preInstall
28     install -Dm555 ad-ldap-enum.py $out/bin/ad-ldap-enum
30     runHook postInstall
31   '';
33   fixupPhase = ''
34     runHook preFixup
36     patchShebangs $out/bin/ad-ldap-enum
38     runHook postFixup
39   '';
41   meta = with lib; {
42     description = "LDAP based Active Directory user and group enumeration tool";
43     homepage = "https://github.com/CroweCybersecurity/ad-ldap-enum";
44     license = licenses.mit;
45     maintainers = with maintainers; [ h7x4 ];
46     platforms = python3.meta.platforms;
47     mainProgram = "ad-ldap-enum";
48   };