4 , withJitSealloc ? true
7 stdenv.mkDerivation rec {
12 url = "https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.bz2";
13 hash = "sha256-FOS4PEeDkz3BfpZDGOYyT3yuG8ddjzx5vGlp8AwVnWg=";
19 # only enable jit on supported platforms which excludes Apple Silicon, see https://github.com/zherczeg/sljit/issues/51
22 # fix pcre jit in systemd units that set MemoryDenyWriteExecute=true like gitea
23 ++ lib.optional withJitSealloc "--enable-jit-sealloc";
25 outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
28 moveToOutput bin/pcre2-config "$dev"
32 homepage = "https://www.pcre.org/";
33 description = "Perl Compatible Regular Expressions";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ ttuegel ];
36 platforms = platforms.all;