mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
2d7f1c0224
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/lbdb/versions
49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ stdenv, fetchurl, perl, perlPackages, finger_bsd, makeWrapper
|
|
, abook ? null
|
|
, gnupg ? null
|
|
, goobook ? null
|
|
, khard ? null
|
|
, mu ? null
|
|
}:
|
|
|
|
let
|
|
version = "0.48";
|
|
in
|
|
with stdenv.lib;
|
|
with perlPackages;
|
|
stdenv.mkDerivation {
|
|
name = "lbdb-${version}";
|
|
src = fetchurl {
|
|
url = "http://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
|
|
sha256 = "1j1ac0nnf6j5mwb6rh61ax9aidj4lvv2vrj5b1p71d4d1m3g180z";
|
|
};
|
|
|
|
buildInputs = [ goobook makeWrapper perl ConvertASN1 perlldap AuthenSASL ]
|
|
++ optional (!stdenv.isDarwin) finger_bsd
|
|
++ optional (abook != null) abook
|
|
++ optional (gnupg != null) gnupg
|
|
++ optional (goobook != null) goobook
|
|
++ optional (khard != null) khard
|
|
++ optional (mu != null) mu;
|
|
configureFlags = [ ]
|
|
++ optional (abook != null) "--with-abook"
|
|
++ optional (gnupg != null) "--with-gpg"
|
|
++ optional (goobook != null) "--with-goobook"
|
|
++ optional (khard != null) "--with-khard"
|
|
++ optional (mu != null) "--with-mu";
|
|
|
|
patches = [ ./add-methods-to-rc.patch ];
|
|
postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : "
|
|
+ "${AuthenSASL}/${perl.libPrefix}"
|
|
+ ":${ConvertASN1}/${perl.libPrefix}"
|
|
+ ":${perlldap}/${perl.libPrefix}";
|
|
|
|
meta = {
|
|
homepage = http://www.spinnaker.de/lbdb/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
description = "The Little Brother's Database";
|
|
maintainers = [ maintainers.kaiha ];
|
|
};
|
|
}
|