nixpkgs/pkgs/tools/misc/shelldap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.4 KiB
Nix
Raw Normal View History

2023-09-29 18:26:12 +00:00
{ lib
, stdenv
2023-09-29 18:26:12 +00:00
, fetchFromGitHub
, perlPackages
, shortenPerlShebang
2023-09-29 18:26:12 +00:00
}:
2019-03-06 21:00:29 +00:00
perlPackages.buildPerlPackage rec {
pname = "shelldap";
2023-09-29 18:26:12 +00:00
version = "1.5.1";
src = fetchFromGitHub {
owner = "mahlonsmith";
repo = "shelldap";
rev = "refs/tags/v${version}";
hash = "sha256-67ttAXzu9pfeqjfhMfLMb9vWCXTrE+iUDCbamqswaLg=";
2019-03-06 21:00:29 +00:00
};
2023-09-29 18:26:12 +00:00
buildInputs = with perlPackages; [
AlgorithmDiff
AuthenSASL
IOSocketSSL
perl
perlldap
TermReadLineGnu
TermShell
TieIxHash
YAMLSyck
];
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;
2019-03-06 21:00:29 +00:00
prePatch = ''
touch Makefile.PL
'';
2023-09-29 18:26:12 +00:00
2019-03-06 21:00:29 +00:00
installPhase = ''
runHook preInstall
install -Dm555 -t $out/bin shelldap
runHook postInstall
'';
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
shortenPerlShebang $out/bin/shelldap
2019-03-06 21:00:29 +00:00
'';
2023-09-29 18:26:12 +00:00
# no make target 'test', not tests provided by source
doCheck = false;
2019-03-06 21:00:29 +00:00
outputs = [ "out" ];
2023-09-29 18:26:12 +00:00
meta = with lib; {
2023-09-29 18:26:12 +00:00
homepage = "https://github.com/mahlonsmith/shelldap/";
2019-03-06 21:00:29 +00:00
description = "Handy shell-like interface for browsing LDAP servers and editing their content";
2023-09-29 18:26:12 +00:00
changelog = "https://github.com/mahlonsmith/shelldap/blob/v${version}/CHANGELOG";
2019-03-06 21:00:29 +00:00
license = with licenses; [ bsd3 ];
2023-09-29 18:26:12 +00:00
maintainers = with maintainers; [ clerie tobiasBora ];
2023-09-29 18:27:15 +00:00
platforms = platforms.unix;
2023-11-27 01:17:53 +00:00
mainProgram = "shelldap";
2019-03-06 21:00:29 +00:00
};
}