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

49 lines
1.4 KiB
Nix
Raw Normal View History

2017-10-14 19:47:13 +00:00
{ stdenv, fetchurl, perl, perlPackages, finger_bsd, makeWrapper
, 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
}:
let
version = "0.48";
in
2017-10-14 19:47:13 +00:00
with stdenv.lib;
with perlPackages;
stdenv.mkDerivation {
2013-08-28 07:56:08 +00:00
name = "lbdb-${version}";
src = fetchurl {
2018-01-20 07:55:00 +00:00
url = "http://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
sha256 = "1j1ac0nnf6j5mwb6rh61ax9aidj4lvv2vrj5b1p71d4d1m3g180z";
2013-08-28 07:56:08 +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
patches = [ ./add-methods-to-rc.patch ];
postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : "
+ "${AuthenSASL}/${perl.libPrefix}"
+ ":${ConvertASN1}/${perl.libPrefix}"
+ ":${perlldap}/${perl.libPrefix}";
2013-08-28 07:56:08 +00:00
meta = {
homepage = http://www.spinnaker.de/lbdb/;
2017-11-12 15:03:06 +00:00
license = licenses.gpl2;
platforms = platforms.all;
description = "The Little Brother's Database";
2017-11-12 15:03:06 +00:00
maintainers = [ maintainers.kaiha ];
2013-08-28 07:56:08 +00:00
};
}