70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
perl,
|
|
bsd-finger,
|
|
withAbook ? true,
|
|
abook,
|
|
withGnupg ? true,
|
|
gnupg,
|
|
withGoobook ? true,
|
|
goobook,
|
|
withKhard ? true,
|
|
khard,
|
|
withMu ? true,
|
|
mu,
|
|
}:
|
|
|
|
let
|
|
perl' = perl.withPackages (
|
|
p: with p; [
|
|
AuthenSASL
|
|
ConvertASN1
|
|
IOSocketSSL
|
|
perlldap
|
|
]
|
|
);
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "lbdb";
|
|
version = "0.56";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.spinnaker.de/lbdb/download/lbdb-${version}.tar.gz";
|
|
sha256 = "sha256-uqaiO2E5TXkreyIeGWHZulcQYUyTJOj1mzXBJsK0504=";
|
|
};
|
|
|
|
buildInputs =
|
|
[ perl' ]
|
|
++ lib.optional (!stdenv.hostPlatform.isDarwin) bsd-finger
|
|
++ lib.optional withAbook abook
|
|
++ lib.optional withGnupg gnupg
|
|
++ lib.optional withGoobook goobook
|
|
++ lib.optional withKhard khard
|
|
++ lib.optional withMu mu;
|
|
|
|
configureFlags =
|
|
[ ]
|
|
++ 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";
|
|
|
|
patches = [
|
|
./add-methods-to-rc.patch
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.spinnaker.de/lbdb/";
|
|
description = "Little Brother's Database";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [
|
|
kaiha
|
|
bfortz
|
|
];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|