diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/pcre2/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/pcre2/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/pcre2/default.nix b/nixpkgs/pkgs/development/libraries/pcre2/default.nix index 4d1c256e301b..23234c40e3f8 100644 --- a/nixpkgs/pkgs/development/libraries/pcre2/default.nix +++ b/nixpkgs/pkgs/development/libraries/pcre2/default.nix @@ -13,6 +13,16 @@ stdenv.mkDerivation rec { hash = "sha256-4qU5hP8LB9/bWuRIa7ubIcyo598kNAlsyb8bcow1C8s="; }; + postPatch = '' + # Fix jit autodetection: + # https://github.com/PCRE2Project/pcre2/pull/396 + # Applying manually to avoid fetchpatch and autoreconfHook. + # TODO: remove once 10.44 is released + substituteInPlace configure --replace-fail \ + '#include "src/sljit/sljitConfigInternal.h"' \ + '#include "src/sljit/sljitConfigCPU.h"' + ''; + configureFlags = [ "--enable-pcre2-16" "--enable-pcre2-32" |