From ffbea964ad8eb9899976dbc449893935cd2020b3 Mon Sep 17 00:00:00 2001 From: Bernard Fortz Date: Wed, 22 May 2019 08:00:56 +0200 Subject: [PATCH] lbdb: fix build --- pkgs/tools/misc/lbdb/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/lbdb/default.nix b/pkgs/tools/misc/lbdb/default.nix index a00da33d8c9..e48d6354eb5 100644 --- a/pkgs/tools/misc/lbdb/default.nix +++ b/pkgs/tools/misc/lbdb/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, perl, perlPackages, finger_bsd, makeWrapper +{ stdenv, fetchurl, fetchpatch, perl, perlPackages, finger_bsd, makeWrapper , abook ? null , gnupg ? null , goobook ? null @@ -32,7 +32,14 @@ stdenv.mkDerivation { ++ optional (khard != null) "--with-khard" ++ optional (mu != null) "--with-mu"; - patches = [ ./add-methods-to-rc.patch ]; + patches = [ ./add-methods-to-rc.patch + # fix undefined exec_prefix. Remove with the next release + (fetchpatch { + url = "https://github.com/RolandRosenfeld/lbdb/commit/60b7bae255011f59212d96adfbded459d6a27129.patch"; + sha256 = "129zg086glmlalrg395jq8ljcp787dl3rxjf9v7apsd8mqfdkl2v"; + excludes = [ "debian/changelog" ]; + }) + ]; postFixup = "wrapProgram $out/lib/mutt_ldap_query --prefix PERL5LIB : " + "${AuthenSASL}/${perl.libPrefix}" + ":${ConvertASN1}/${perl.libPrefix}" @@ -43,6 +50,6 @@ stdenv.mkDerivation { license = licenses.gpl2; platforms = platforms.all; description = "The Little Brother's Database"; - maintainers = [ maintainers.kaiha ]; + maintainers = [ maintainers.kaiha maintainers.bfortz ]; }; }