14 version = "0-unstable-2024-02-24";
16 src = fetchFromGitHub {
19 rev = "d1fe50006c4a3a1796d4fb2d73d8c8dcfc875fd5";
20 hash = "sha256-ZKRTYdgtOfV7TgpaVKLhYrCttYvB/bUexMshmmF8NyY=";
23 nativeBuildInputs = [ makeWrapper ];
28 # fix .lldap-cli-wrapped showing up in usage
29 substituteInPlace lldap-cli \
30 --replace-fail '$(basename $0)' lldap-cli
39 install -Dm555 lldap-cli -t $out/bin
40 wrapProgram $out/bin/lldap-cli \
41 --prefix PATH : ${lib.makeBinPath [ bash coreutils gnugrep gnused jq curl ]}
45 description = "Command line tool for managing LLDAP";
47 LDAP-CLI is a command line interface for LLDAP.
49 LLDAP uses GraphQL to offer an HTTP-based API.
50 This API is used by an included web-based user interface.
51 Unfortunately, LLDAP lacks a command-line interface,
52 which is a necessity for any serious administrator.
53 LLDAP-CLI translates CLI commands to GraphQL API calls.
55 homepage = "https://github.com/Zepmann/lldap-cli";
56 license = lib.licenses.gpl3Only;
57 maintainers = [ lib.maintainers.nw ];
58 mainProgram = "lldap-cli";
59 platforms = lib.platforms.unix;