2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchurl }:
|
2015-10-09 17:08:25 -07:00
|
|
|
|
2016-05-24 07:15:43 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "pcre2";
|
2019-11-28 12:55:25 -08:00
|
|
|
version = "10.34";
|
2015-10-09 17:08:25 -07:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://ftp.pcre.org/pub/pcre/${pname}-${version}.tar.bz2";
|
2019-11-28 12:55:25 -08:00
|
|
|
sha256 = "1jlqnzcz2yi70dm40wyfa9w8is9z2kh4dl8zjnv3vqd9mgzp7i3l";
|
2015-10-09 17:08:25 -07:00
|
|
|
};
|
|
|
|
|
2015-10-10 11:56:24 -07:00
|
|
|
configureFlags = [
|
2015-10-10 11:56:34 -07:00
|
|
|
"--enable-pcre2-16"
|
|
|
|
"--enable-pcre2-32"
|
2015-10-10 11:56:24 -07:00
|
|
|
"--enable-jit"
|
|
|
|
];
|
|
|
|
|
2016-09-14 07:57:01 -07:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
|
|
|
|
|
2018-08-09 17:30:08 -07:00
|
|
|
doCheck = false; # fails 1 out of 3 tests, looks like a bug
|
|
|
|
|
2016-09-14 07:57:01 -07:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin/pcre2-config "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Perl Compatible Regular Expressions";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.pcre.org/";
|
2016-09-14 07:57:01 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
platforms = platforms.all;
|
2015-10-09 17:08:25 -07:00
|
|
|
};
|
|
|
|
}
|