1{ stdenv, fetchgit, openldap, openssl, popt, glib, ncurses, readline, pkgconfig, cyrus_sasl, autoconf, automake }:
2
3stdenv.mkDerivation rec {
4 name = "ldapvi-${version}";
5 version = "0lz1sb5r0y9ypy8d7hm0l2wfa8l69f8ll0i5c78c0apz40nyjqkg";
6
7 # use latest git, it includes some important patches since 2007 release
8 src = fetchgit {
9 url = "http://www.lichteblau.com/git/ldapvi.git";
10 sha256 = "3ef3103030ecb04d7fe80180e3fd490377cf81fb2af96782323fddabc3225030";
11 };
12
13 buildInputs = [ openldap openssl popt glib ncurses readline pkgconfig cyrus_sasl autoconf automake ];
14
15 preConfigure = ''
16 cd ldapvi
17 ./autogen.sh
18 '';
19
20 meta = with stdenv.lib; {
21 description = "Interactive LDAP client for Unix terminals";
22 longDescription = ''
23 ldapvi is an interactive LDAP client for Unix terminals. Using it, you
24 can update LDAP entries with a text editor.
25 '';
26 homepage = http://www.lichteblau.com/ldapvi/;
27 license = licenses.gpl2;
28 maintainers = with maintainers; [ iElectric ];
29 platforms = stdenv.lib.platforms.linux;
30 };
31}