diff options
Diffstat (limited to 'pkgs/development/libraries/pcre/default.nix')
-rw-r--r-- | pkgs/development/libraries/pcre/default.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/development/libraries/pcre/default.nix b/pkgs/development/libraries/pcre/default.nix index 52219152845ba..52a4ba32315ee 100644 --- a/pkgs/development/libraries/pcre/default.nix +++ b/pkgs/development/libraries/pcre/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl +{ lib, stdenv, fetchurl, fetchpatch , pcre, windows ? null , variant ? null }: @@ -25,8 +25,17 @@ stdenv.mkDerivation rec { ] ++ lib.optional (variant != null) "--enable-${variant}"; - # https://bugs.exim.org/show_bug.cgi?id=2173 - patches = [ ./stacksize-detection.patch ]; + patches = [ + # https://bugs.exim.org/show_bug.cgi?id=2173 + ./stacksize-detection.patch + + # Fix segfaults & tests on powerpc64 + (fetchpatch { + name = "sljit-ppc-icache-flush.patch"; + url = "https://github.com/void-linux/void-packages/raw/d286e231ee680875ad8e80f90ea62e46f5edd812/srcpkgs/pcre/patches/ppc-icache-flush.patch"; + hash = "sha256-pttmKwihLzKrAV6O4qVLp2pu4NwNJEFS/9Id8/b3nAU="; + }) + ]; preCheck = '' patchShebangs RunGrepTest @@ -44,7 +53,7 @@ stdenv.mkDerivation rec { meta = { homepage = "http://www.pcre.org/"; - description = "A library for Perl Compatible Regular Expressions"; + description = "Library for Perl Compatible Regular Expressions"; license = lib.licenses.bsd3; longDescription = '' |