nixpkgs/pkgs/tools/misc/lbdb/default.nix

63 lines
1.6 KiB
Nix
Raw Normal View History

2022-03-14 15:54:44 +00:00
{ lib
, stdenv
, fetchurl
, fetchpatch
, perl
, bsd-finger
, withAbook ? true, abook
, withGnupg ? true, gnupg
, withGoobook ? true, goobook
, withKhard ? true, khard
, withMu ? true, mu
2017-10-14 20:47:13 +01:00
}:
let
2022-03-14 15:54:44 +00:00
perl' = perl.withPackages (p: with p; [
AuthenSASL
ConvertASN1
perlldap
]);
in
2021-07-14 16:10:11 +01:00
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "lbdb";
2021-07-14 16:10:11 +01:00
version = "0.48.1";
2022-03-14 15:54:44 +00:00
2013-08-28 08:56:08 +01:00
src = fetchurl {
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";
2013-08-28 08:56:08 +01:00
};
2022-03-14 15:54:44 +00:00
buildInputs = [ perl' ]
++ lib.optional (!stdenv.isDarwin) bsd-finger
++ lib.optional withAbook abook
++ lib.optional withGnupg gnupg
++ lib.optional withGoobook goobook
++ lib.optional withKhard khard
++ lib.optional withMu mu;
2017-10-14 20:47:13 +01:00
configureFlags = [ ]
2022-03-14 15:54:44 +00:00
++ lib.optional withAbook "--with-abook"
++ lib.optional withGnupg "--with-gpg"
++ lib.optional withGoobook "--with-goobook"
++ lib.optional withKhard "--with-khard"
++ lib.optional withMu "--with-mu";
2017-10-14 20:47:13 +01:00
2022-03-14 15:54:44 +00:00
patches = [
./add-methods-to-rc.patch
2019-05-22 07:00:56 +01:00
# fix undefined exec_prefix. Remove with the next release
(fetchpatch {
url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch";
sha256 = "129zg086glmlalrg395jq8ljcp787dl3rxjf9v7apsd8mqfdkl2v";
excludes = [ "debian/changelog" ];
})
];
meta = with lib; {
homepage = "https://www.spinnaker.de/lbdb/";
2022-03-14 15:54:44 +00:00
description = "The Little Brother's Database";
2017-11-12 15:03:06 +00:00
license = licenses.gpl2;
2022-03-14 15:54:44 +00:00
maintainers = with maintainers; [ kaiha bfortz ];
2017-11-12 15:03:06 +00:00
platforms = platforms.all;
2013-08-28 08:56:08 +01:00
};
}