2019-05-22 06:00:56 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, perl, perlPackages, finger_bsd, makeWrapper
|
2017-10-14 19:47:13 +00:00
|
|
|
, abook ? null
|
|
|
|
, gnupg ? null
|
|
|
|
, goobook ? null
|
|
|
|
, khard ? null
|
2018-01-20 07:55:00 +00:00
|
|
|
, mu ? null
|
2017-10-14 19:47:13 +00:00
|
|
|
}:
|
2013-08-27 07:28:36 +00:00
|
|
|
|
|
|
|
let
|
2019-01-28 12:28:10 +00:00
|
|
|
version = "0.48.1";
|
2013-08-27 07:28:36 +00:00
|
|
|
in
|
2017-10-14 19:47:13 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
with perlPackages;
|
2013-08-27 07:28:36 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "lbdb";
|
|
|
|
inherit version;
|
2013-08-28 07:56:08 +00:00
|
|
|
src = fetchurl {
|
2020-10-02 07:58:50 +00:00
|
|
|
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
|
2019-01-28 12:28:10 +00:00
|
|
|
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
|
2013-08-28 07:56:08 +00:00
|
|
|
};
|
2013-08-27 07:28:36 +00:00
|
|
|
|
2018-07-22 02:03:24 +00:00
|
|
|
buildInputs = [ goobook makeWrapper perl ConvertASN1 perlldap AuthenSASL ]
|
2017-10-14 19:47:13 +00:00
|
|
|
++ optional (!stdenv.isDarwin) finger_bsd
|
|
|
|
++ optional (abook != null) abook
|
|
|
|
++ optional (gnupg != null) gnupg
|
|
|
|
++ optional (goobook != null) goobook
|
2018-01-20 07:55:00 +00:00
|
|
|
++ optional (khard != null) khard
|
|
|
|
++ optional (mu != null) mu;
|
2017-10-14 19:47:13 +00:00
|
|
|
configureFlags = [ ]
|
|
|
|
++ optional (abook != null) "--with-abook"
|
|
|
|
++ optional (gnupg != null) "--with-gpg"
|
|
|
|
++ optional (goobook != null) "--with-goobook"
|
2018-01-20 07:55:00 +00:00
|
|
|
++ optional (khard != null) "--with-khard"
|
|
|
|
++ optional (mu != null) "--with-mu";
|
2017-10-14 19:47:13 +00:00
|
|
|
|
2019-05-22 06:00:56 +00:00
|
|
|
patches = [ ./add-methods-to-rc.patch
|
|
|
|
# fix undefined exec_prefix. Remove with the next release
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch";
|
|
|
|
sha256 = "129zg086glmlalrg395jq8ljcp787dl3rxjf9v7apsd8mqfdkl2v";
|
|
|
|
excludes = [ "debian/changelog" ];
|
|
|
|
})
|
|
|
|
];
|
2017-10-14 19:47:13 +00:00
|
|
|
postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : "
|
|
|
|
+ "${AuthenSASL}/${perl.libPrefix}"
|
|
|
|
+ ":${ConvertASN1}/${perl.libPrefix}"
|
2018-07-22 02:03:24 +00:00
|
|
|
+ ":${perlldap}/${perl.libPrefix}";
|
2013-08-27 07:28:36 +00:00
|
|
|
|
2013-08-28 07:56:08 +00:00
|
|
|
meta = {
|
2020-10-02 07:58:50 +00:00
|
|
|
homepage = "https://www.spinnaker.de/lbdb/";
|
2017-11-12 15:03:06 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "The Little Brother's Database";
|
2019-05-22 06:00:56 +00:00
|
|
|
maintainers = [ maintainers.kaiha maintainers.bfortz ];
|
2013-08-28 07:56:08 +00:00
|
|
|
};
|
2013-08-27 07:28:36 +00:00
|
|
|
}
|