mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #326131 from nwhirschfeld/lldap-cli
This commit is contained in:
commit
64a4b158bd
@ -14920,6 +14920,12 @@
|
||||
githubId = 16027994;
|
||||
name = "Nathan Viets";
|
||||
};
|
||||
nw = {
|
||||
email = "nixpkgs@nwhirschfeld.de";
|
||||
github = "nwhirschfeld";
|
||||
githubId = 5047052;
|
||||
name = "Niclas Hirschfeld";
|
||||
};
|
||||
nyadiia = {
|
||||
email = "nyadiia@pm.me";
|
||||
github = "nyadiia";
|
||||
|
61
pkgs/by-name/ll/lldap-cli/package.nix
Normal file
61
pkgs/by-name/ll/lldap-cli/package.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, bash
|
||||
, coreutils
|
||||
, gnugrep
|
||||
, gnused
|
||||
, jq
|
||||
, curl
|
||||
, makeWrapper
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "lldap-cli";
|
||||
version = "0-unstable-2024-02-24";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Zepmann";
|
||||
repo = "lldap-cli";
|
||||
rev = "d1fe50006c4a3a1796d4fb2d73d8c8dcfc875fd5";
|
||||
hash = "sha256-ZKRTYdgtOfV7TgpaVKLhYrCttYvB/bUexMshmmF8NyY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
patchPhase = ''
|
||||
runHook prePatch
|
||||
|
||||
# fix .lldap-cli-wrapped showing up in usage
|
||||
substituteInPlace lldap-cli \
|
||||
--replace-fail '$(basename $0)' lldap-cli
|
||||
|
||||
runHook postPatch
|
||||
'';
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
install -Dm555 lldap-cli -t $out/bin
|
||||
wrapProgram $out/bin/lldap-cli \
|
||||
--prefix PATH : ${lib.makeBinPath [ bash coreutils gnugrep gnused jq curl ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Command line tool for managing LLDAP";
|
||||
longDescription = ''
|
||||
LDAP-CLI is a command line interface for LLDAP.
|
||||
|
||||
LLDAP uses GraphQL to offer an HTTP-based API.
|
||||
This API is used by an included web-based user interface.
|
||||
Unfortunately, LLDAP lacks a command-line interface,
|
||||
which is a necessity for any serious administrator.
|
||||
LLDAP-CLI translates CLI commands to GraphQL API calls.
|
||||
'';
|
||||
homepage = "https://github.com/Zepmann/lldap-cli";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = [ lib.maintainers.nw ];
|
||||
mainProgram = "lldap-cli";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user