From bdcff9cd3c2296db4f3c754a5ece46cf34942c95 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 6 Jul 2023 01:04:33 +0300 Subject: [PATCH] zsh: build pcre.so 77f84f07c47737d66445c5aa32a3740d1f91e0fa changed zsh to use pkg-config and i assumed that because the zsh binary was linked with pcre that pcre support was working, but it was not. --- pkgs/shells/zsh/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index 1a085c0e062c..890817dd4077 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -57,6 +57,11 @@ stdenv.mkDerivation { "zsh_cv_sys_dynamic_strip_lib=yes" ]; + postPatch = '' + substituteInPlace Src/Modules/pcre.mdd \ + --replace 'pcre-config' 'true' + ''; + preConfigure = '' # use pkg-config instead of pcre-config configureFlagsArray+=("PCRECONF=''${PKG_CONFIG} libpcre")