3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/pcre2/default.nix

36 lines
979 B
Nix
Raw Normal View History

2021-09-20 19:16:44 +01:00
{ lib
, stdenv
, fetchurl
}:
2015-10-10 01:08:25 +01:00
2016-05-24 15:15:43 +01:00
stdenv.mkDerivation rec {
pname = "pcre2";
2021-09-20 19:16:44 +01:00
version = "10.37";
2015-10-10 01:08:25 +01:00
src = fetchurl {
url = "https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.bz2";
2021-09-20 19:16:44 +01:00
hash = "sha256-TZWpbouAUpiTtFYr4SZI15i5V7G6Gq45YGu8KrlW0nA=";
2015-10-10 01:08:25 +01:00
};
2020-11-28 05:45:35 +00:00
# Disable jit on Apple Silicon, https://github.com/zherczeg/sljit/issues/51
2015-10-10 19:56:24 +01:00
configureFlags = [
"--enable-pcre2-16"
"--enable-pcre2-32"
2021-09-20 19:16:44 +01:00
] ++ lib.optional (!stdenv.hostPlatform.isRiscV &&
!(stdenv.hostPlatform.isDarwin &&
stdenv.hostPlatform.isAarch64)) "--enable-jit";
2015-10-10 19:56:24 +01:00
2016-09-14 15:57:01 +01:00
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
postFixup = ''
moveToOutput bin/pcre2-config "$dev"
'';
meta = with lib; {
homepage = "http://www.pcre.org/";
2021-09-20 19:16:44 +01:00
description = "Perl Compatible Regular Expressions";
2016-09-14 15:57:01 +01:00
license = licenses.bsd3;
maintainers = with maintainers; [ ttuegel ];
platforms = platforms.all;
2015-10-10 01:08:25 +01:00
};
}