zsh: build pcre.so

77f84f07c4 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.
This commit is contained in:
Artturin 2023-07-06 01:04:33 +03:00
parent aafa2b2c3d
commit bdcff9cd3c

View file

@ -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")