2021-04-12 18:23:04 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, perl, finger_bsd
|
2020-04-24 23:36:52 +00:00
|
|
|
, abook ? null
|
|
|
|
, gnupg ? null
|
|
|
|
, goobook ? null
|
|
|
|
, khard ? null
|
|
|
|
, mu ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-04-12 18:23:04 +00:00
|
|
|
perl' = perl.withPackages (p: with p; [ ConvertASN1 perlldap AuthenSASL ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
2021-07-17 21:14:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lbdb";
|
2021-07-17 21:14:59 +00:00
|
|
|
version = "0.48.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2020-10-07 09:15:18 +00:00
|
|
|
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
|
|
|
|
};
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
buildInputs = [ goobook perl' ]
|
|
|
|
++ lib.optional (!stdenv.isDarwin) finger_bsd
|
|
|
|
++ lib.optional (abook != null) abook
|
|
|
|
++ lib.optional (gnupg != null) gnupg
|
|
|
|
++ lib.optional (goobook != null) goobook
|
|
|
|
++ lib.optional (khard != null) khard
|
|
|
|
++ lib.optional (mu != null) mu;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [ ]
|
2021-04-12 18:23:04 +00:00
|
|
|
++ lib.optional (abook != null) "--with-abook"
|
|
|
|
++ lib.optional (gnupg != null) "--with-gpg"
|
|
|
|
++ lib.optional (goobook != null) "--with-goobook"
|
|
|
|
++ lib.optional (khard != null) "--with-khard"
|
|
|
|
++ lib.optional (mu != null) "--with-mu";
|
2020-04-24 23:36:52 +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" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
meta = with lib; {
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://www.spinnaker.de/lbdb/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
description = "The Little Brother's Database";
|
|
|
|
maintainers = [ maintainers.kaiha maintainers.bfortz ];
|
|
|
|
};
|
|
|
|
}
|