From edd7de1c67263d9ab4ac1e25f4c0a13cdd1f5540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Thu, 29 Sep 2022 19:46:12 +0200 Subject: [PATCH] perlPackages.NetLDAP: Use ldapi socket location from openldap --- pkgs/top-level/perl-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 6a5806736e91..e920d570ff71 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -19420,6 +19420,12 @@ let url = "mirror://cpan/authors/id/M/MA/MARSCHAP/perl-ldap-0.66.tar.gz"; hash = "sha256-CSY85hZugMmNaJ1B0JmVuBM4n9Bpt4RgH23Ff44rQQI="; }; + # ldapi socket location should match the one compiled into the openldap package + postPatch = '' + for f in lib/Net/LDAPI.pm lib/Net/LDAP/Util.pm lib/Net/LDAP.pod lib/Net/LDAP.pm; do + sed -i 's:/var/run/ldapi:/run/openldap/ldapi:g' "$f" + done + ''; buildInputs = [ TextSoundex ]; propagatedBuildInputs = [ ConvertASN1 ]; meta = {