4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ lib, stdenv, fetchgit, openldap, openssl, popt, glib, ncurses, readline, pkgconfig, cyrus_sasl, autoconf, automake }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ldapvi";
|
|
version = "0lz1sb5r0y9ypy8d7hm0l2wfa8l69f8ll0i5c78c0apz40nyjqkg";
|
|
|
|
# use latest git, it includes some important patches since 2007 release
|
|
src = fetchgit {
|
|
url = "http://www.lichteblau.com/git/ldapvi.git";
|
|
sha256 = "3ef3103030ecb04d7fe80180e3fd490377cf81fb2af96782323fddabc3225030";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ openldap openssl popt glib ncurses readline cyrus_sasl autoconf automake ];
|
|
|
|
preConfigure = ''
|
|
cd ldapvi
|
|
./autogen.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interactive LDAP client for Unix terminals";
|
|
longDescription = ''
|
|
ldapvi is an interactive LDAP client for Unix terminals. Using it, you
|
|
can update LDAP entries with a text editor.
|
|
'';
|
|
homepage = "http://www.lichteblau.com/ldapvi/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|