1{ lib, fetchurl, perlPackages }:
2perlPackages.buildPerlPackage rec {
3 pname = "shelldap";
4 version = "1.4.0";
5 src = fetchurl {
6 url = "https://bitbucket.org/mahlon/shelldap/downloads/shelldap-${version}.tar.gz";
7 sha256 = "07gkvvxcgw3pgkfy8p9mmidakciaq1rsq5zhmdqd8zcwgqkrr24i";
8 };
9 buildInputs = with perlPackages; [ perl YAMLSyck perlldap AlgorithmDiff IOSocketSSL AuthenSASL TermReadLineGnu TermShell ];
10 prePatch = ''
11 touch Makefile.PL
12 '';
13 installPhase = ''
14 runHook preInstall
15 install -Dm555 -t $out/bin shelldap
16 runHook preInstall
17 '';
18 outputs = [ "out" ];
19 meta = with lib; {
20 homepage = "https://bitbucket.org/mahlon/shelldap/";
21 description = "A handy shell-like interface for browsing LDAP servers and editing their content";
22 license = with licenses; [ bsd3 ];
23 maintainers = with maintainers; [ tobiasBora ];
24 platforms = platforms.linux;
25 };
26}