nixpkgs/pkgs/development/libraries/pcre2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
987 B
Nix
Raw Normal View History

2021-09-20 18:16:44 +00:00
{ lib
, stdenv
, fetchurl
}:
2015-10-10 00:08:25 +00:00
2016-05-24 14:15:43 +00:00
stdenv.mkDerivation rec {
pname = "pcre2";
2022-04-26 21:59:59 +00:00
version = "10.40";
2015-10-10 00:08:25 +00:00
src = fetchurl {
url = "https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.bz2";
2022-04-26 21:59:59 +00:00
hash = "sha256-FOS4PEeDkz3BfpZDGOYyT3yuG8ddjzx5vGlp8AwVnWg=";
2015-10-10 00:08:25 +00:00
};
2015-10-10 18:56:24 +00:00
configureFlags = [
"--enable-pcre2-16"
"--enable-pcre2-32"
# only enable jit on supported platforms which excludes Apple Silicon, see https://github.com/zherczeg/sljit/issues/51
"--enable-jit=auto"
# fix pcre jit in systemd units that set MemoryDenyWriteExecute=true like gitea
"--enable-jit-sealloc"
];
2015-10-10 18:56:24 +00:00
2016-09-14 14:57:01 +00:00
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
postFixup = ''
moveToOutput bin/pcre2-config "$dev"
'';
meta = with lib; {
homepage = "https://www.pcre.org/";
2021-09-20 18:16:44 +00:00
description = "Perl Compatible Regular Expressions";
2016-09-14 14:57:01 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ ttuegel ];
platforms = platforms.all;
2015-10-10 00:08:25 +00:00
};
}