2017-03-26 16:12:13 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch }:
|
2015-10-10 01:08:25 +01:00
|
|
|
|
2016-05-24 15:15:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-14 15:57:01 +01:00
|
|
|
name = "pcre2-${version}";
|
2018-07-08 11:48:52 +01:00
|
|
|
version = "10.31";
|
2015-10-10 01:08:25 +01:00
|
|
|
src = fetchurl {
|
2016-05-24 15:15:43 +01:00
|
|
|
url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
|
2018-07-08 11:48:52 +01:00
|
|
|
sha256 = "1b389pzw91k1hzydsh4smdsxyppwz4pv74m3nrvy8rda0j3m6zg0";
|
2015-10-10 01:08:25 +01:00
|
|
|
};
|
|
|
|
|
2015-10-10 19:56:24 +01:00
|
|
|
configureFlags = [
|
2015-10-10 19:56:34 +01:00
|
|
|
"--enable-pcre2-16"
|
|
|
|
"--enable-pcre2-32"
|
2015-10-10 19:56:24 +01:00
|
|
|
"--enable-jit"
|
|
|
|
];
|
|
|
|
|
2016-09-14 15:57:01 +01:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin/pcre2-config "$dev"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Perl Compatible Regular Expressions";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.pcre.org/;
|
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
|
|
|
};
|
|
|
|
}
|