2017-10-14 21:47:13 +02:00
|
|
|
{ stdenv, fetchurl, perl, perlPackages, finger_bsd, makeWrapper
|
|
|
|
, abook ? null
|
|
|
|
, gnupg ? null
|
|
|
|
, goobook ? null
|
|
|
|
, khard ? null
|
|
|
|
}:
|
2013-08-27 09:28:36 +02:00
|
|
|
|
|
|
|
let
|
2017-11-12 16:03:06 +01:00
|
|
|
version = "0.45.3";
|
2013-08-27 09:28:36 +02:00
|
|
|
in
|
2017-10-14 21:47:13 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
with perlPackages;
|
2013-08-27 09:28:36 +02:00
|
|
|
stdenv.mkDerivation {
|
2013-08-28 09:56:08 +02:00
|
|
|
name = "lbdb-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.spinnaker.de/debian/lbdb_${version}.tar.gz";
|
2017-11-12 16:03:06 +01:00
|
|
|
sha256 = "01lx1nb5nlhwz663v35gg7crd36c78hnipq4z0dqyb9wjigwwg9k";
|
2013-08-28 09:56:08 +02:00
|
|
|
};
|
2013-08-27 09:28:36 +02:00
|
|
|
|
2017-10-14 21:47:13 +02: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
|
|
|
|
++ optional (khard != null) khard;
|
|
|
|
configureFlags = [ ]
|
|
|
|
++ optional (abook != null) "--with-abook"
|
|
|
|
++ optional (gnupg != null) "--with-gpg"
|
|
|
|
++ optional (goobook != null) "--with-goobook"
|
|
|
|
++ optional (khard != null) "--with-khard";
|
|
|
|
|
|
|
|
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 09:28:36 +02:00
|
|
|
|
2013-08-28 09:56:08 +02:00
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.spinnaker.de/lbdb/;
|
2017-11-12 16:03:06 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "The Little Brother's Database";
|
2017-11-12 16:03:06 +01:00
|
|
|
maintainers = [ maintainers.kaiha ];
|
2013-08-28 09:56:08 +02:00
|
|
|
};
|
2013-08-27 09:28:36 +02:00
|
|
|
}
|