Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 1.0 kB view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5}: 6 7python3.pkgs.buildPythonApplication { 8 pname = "msldapdump"; 9 version = "0-unstable-2023-06-12"; 10 format = "other"; 11 12 src = fetchFromGitHub { 13 owner = "dievus"; 14 repo = "msLDAPDump"; 15 rev = "bdffe66be20ff844f55f69fd6d842d7f75f66f2d"; 16 hash = "sha256-qH4AaebrTKYxxjXawllxgiG9fVm03zmTRv/HAyNpewg="; 17 }; 18 19 propagatedBuildInputs = with python3.pkgs; [ 20 colorama 21 ldap3 22 ]; 23 24 dontBuild = true; 25 26 installPhase = '' 27 runHook preInstall 28 29 install -vD msLDAPDump.py $out/bin/msLDAPDump.py 30 31 makeWrapper ${python3.interpreter} $out/bin/msldapdump \ 32 --set PYTHONPATH "$PYTHONPATH:$out/bin/msLDAPDump.py" \ 33 --add-flags "-O $out/bin/msLDAPDump.py" 34 35 runHook postInstall 36 ''; 37 38 # Project has no tests 39 doCheck = false; 40 41 meta = with lib; { 42 description = "LDAP enumeration tool"; 43 homepage = "https://github.com/dievus/msLDAPDump"; 44 license = licenses.agpl3Only; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}