2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pcre2";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "10.36";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ftp.pcre.org/pub/pcre/${pname}-${version}.tar.bz2";
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "0p3699msps07p40g9426lvxa3b41rg7k2fn7qxl2jm0kh4kkkvx9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-pcre2-16"
|
|
|
|
"--enable-pcre2-32"
|
2020-09-25 04:45:31 +00:00
|
|
|
] ++ stdenv.lib.optional (!stdenv.hostPlatform.isRiscV) "--enable-jit";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
|
|
|
|
|
|
|
|
doCheck = false; # fails 1 out of 3 tests, looks like a bug
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin/pcre2-config "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Perl Compatible Regular Expressions";
|
|
|
|
homepage = "http://www.pcre.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|