Files
nixpkgs/pkgs/by-name/ld/ldapmonitor/package.nix
2026-07-15 14:04:39 -04:00

44 lines
989 B
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "ldapmonitor";
version = "1.4";
pyproject = false;
src = fetchFromGitHub {
owner = "p0dalirius";
repo = "ldapmonitor";
tag = finalAttrs.version;
hash = "sha256-BmTj/6dOUYfia6wO4nvkEW01MIC9TuBk4kYAsVHMsWY=";
};
sourceRoot = "${finalAttrs.src.name}/python";
propagatedBuildInputs = with python3.pkgs; [
impacket
ldap3
python-ldap
];
installPhase = ''
runHook preInstall
install -vD pyLDAPmonitor.py $out/bin/ldapmonitor
runHook postInstall
'';
meta = {
description = "Tool to monitor creation, deletion and changes to LDAP objects";
mainProgram = "ldapmonitor";
homepage = "https://github.com/p0dalirius/LDAPmonitor";
changelog = "https://github.com/p0dalirius/LDAPmonitor/releases/tag/${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
})