mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ stdenv, fetchurl, perl, perlPackages, finger_bsd, makeWrapper
|
|
, abook ? null
|
|
, gnupg ? null
|
|
, goobook ? null
|
|
, khard ? null
|
|
}:
|
|
|
|
let
|
|
version = "0.45.3";
|
|
in
|
|
with stdenv.lib;
|
|
with perlPackages;
|
|
stdenv.mkDerivation {
|
|
name = "lbdb-${version}";
|
|
src = fetchurl {
|
|
url = "http://www.spinnaker.de/debian/lbdb_${version}.tar.gz";
|
|
sha256 = "01lx1nb5nlhwz663v35gg7crd36c78hnipq4z0dqyb9wjigwwg9k";
|
|
};
|
|
|
|
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}";
|
|
|
|
meta = {
|
|
homepage = http://www.spinnaker.de/lbdb/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
description = "The Little Brother's Database";
|
|
maintainers = [ maintainers.kaiha ];
|
|
};
|
|
}
|