2017-10-14 22:47:13 +03:00
|
|
|
{ stdenv, fetchurl, perl, perlPackages, finger_bsd, makeWrapper
|
|
|
|
, abook ? null
|
|
|
|
, gnupg ? null
|
|
|
|
, goobook ? null
|
|
|
|
, khard ? null
|
2018-01-20 10:55:00 +03:00
|
|
|
, mu ? null
|
2017-10-14 22:47:13 +03:00
|
|
|
}:
|
2013-08-27 11:28:36 +04:00
|
|
|
|
|
|
|
let
|
2018-01-20 10:55:00 +03:00
|
|
|
version = "0.46";
|
2013-08-27 11:28:36 +04:00
|
|
|
in
|
2017-10-14 22:47:13 +03:00
|
|
|
with stdenv.lib;
|
|
|
|
with perlPackages;
|
2013-08-27 11:28:36 +04:00
|
|
|
stdenv.mkDerivation {
|
2013-08-28 11:56:08 +04:00
|
|
|
name = "lbdb-${version}";
|
|
|
|
src = fetchurl {
|
2018-01-20 10:55:00 +03:00
|
|
|
url = "http://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
|
|
|
|
sha256 = "16fx02xk98k3friigq2lcgk535xagp3kfnmngni5kw61f7yj6gxi";
|
2013-08-28 11:56:08 +04:00
|
|
|
};
|
2013-08-27 11:28:36 +04:00
|
|
|
|
2017-10-14 22:47:13 +03:00
|
|
|
buildInputs = [ goobook makeWrapper perl ConvertASN1 NetLDAP AuthenSASL ]
|
|
|
|
++ optional (!stdenv.isDarwin) finger_bsd
|
|
|
|
++ optional (abook != null) abook
|
|
|
|
++ optional (gnupg != null) gnupg
|
|
|
|
++ optional (goobook != null) goobook
|
2018-01-20 10:55:00 +03:00
|
|
|
++ optional (khard != null) khard
|
|
|
|
++ optional (mu != null) mu;
|
2017-10-14 22:47:13 +03:00
|
|
|
configureFlags = [ ]
|
|
|
|
++ optional (abook != null) "--with-abook"
|
|
|
|
++ optional (gnupg != null) "--with-gpg"
|
|
|
|
++ optional (goobook != null) "--with-goobook"
|
2018-01-20 10:55:00 +03:00
|
|
|
++ optional (khard != null) "--with-khard"
|
|
|
|
++ optional (mu != null) "--with-mu";
|
2017-10-14 22:47:13 +03:00
|
|
|
|
|
|
|
patches = [ ./add-methods-to-rc.patch ];
|
|
|
|
postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : "
|
|
|
|
+ "${AuthenSASL}/${perl.libPrefix}"
|
|
|
|
+ ":${ConvertASN1}/${perl.libPrefix}"
|
|
|
|
+ ":${NetLDAP}/${perl.libPrefix}";
|
2013-08-27 11:28:36 +04:00
|
|
|
|
2013-08-28 11:56:08 +04:00
|
|
|
meta = {
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = http://www.spinnaker.de/lbdb/;
|
2017-11-12 18:03:06 +03:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
2014-08-24 18:21:08 +04:00
|
|
|
description = "The Little Brother's Database";
|
2017-11-12 18:03:06 +03:00
|
|
|
maintainers = [ maintainers.kaiha ];
|
2013-08-28 11:56:08 +04:00
|
|
|
};
|
2013-08-27 11:28:36 +04:00
|
|
|
}
|