2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2015-10-10 02:08:25 +02:00
|
|
|
|
2016-05-24 16:15:43 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-14 16:57:01 +02:00
|
|
|
name = "pcre2-${version}";
|
2018-07-08 12:48:52 +02:00
|
|
|
version = "10.31";
|
2015-10-10 02:08:25 +02:00
|
|
|
src = fetchurl {
|
2018-08-23 16:52:37 +02:00
|
|
|
url = "https://ftp.pcre.org/pub/pcre/${name}.tar.bz2";
|
2018-07-08 12:48:52 +02:00
|
|
|
sha256 = "1b389pzw91k1hzydsh4smdsxyppwz4pv74m3nrvy8rda0j3m6zg0";
|
2015-10-10 02:08:25 +02:00
|
|
|
};
|
|
|
|
|
2015-10-10 20:56:24 +02:00
|
|
|
configureFlags = [
|
2015-10-10 20:56:34 +02:00
|
|
|
"--enable-pcre2-16"
|
|
|
|
"--enable-pcre2-32"
|
2015-10-10 20:56:24 +02:00
|
|
|
"--enable-jit"
|
|
|
|
];
|
|
|
|
|
2016-09-14 16:57:01 +02:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
|
|
|
|
|
2018-08-10 02:30:08 +02:00
|
|
|
doCheck = false; # fails 1 out of 3 tests, looks like a bug
|
|
|
|
|
2016-09-14 16:57:01 +02:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin/pcre2-config "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Perl Compatible Regular Expressions";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.pcre.org/;
|
2016-09-14 16:57:01 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
platforms = platforms.all;
|
2015-10-10 02:08:25 +02:00
|
|
|
};
|
|
|
|
}
|