···11-{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true }:
22-33-stdenv.mkDerivation rec {
44- name = "pcre-8.30";
55-66- src = fetchurl {
77- url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
88- sha256 = "c1113fd7db934e97ad8b3917d432e5b642e9eb9afd127eb797804937c965f4ac";
99- };
1010-1111- # The compiler on Darwin crashes with an internal error while building the
1212- # C++ interface. Disabling optimizations on that platform remedies the
1313- # problem. In case we ever update the Darwin GCC version, the exception for
1414- # that platform ought to be removed.
1515- configureFlags = ''
1616- ${if unicodeSupport then "--enable-unicode-properties" else ""}
1717- ${if !cplusplusSupport then "--disable-cpp" else ""}
1818- '' + stdenv.lib.optionalString stdenv.isDarwin "CXXFLAGS=-O0";
1919-2020- doCheck = !stdenv.isCygwin; # XXX: test failure on Cygwin
2121-2222- meta = {
2323- homepage = "http://www.pcre.org/";
2424- description = "A library for Perl Compatible Regular Expressions";
2525- license = "BSD-3";
2626-2727- longDescription = ''
2828- The PCRE library is a set of functions that implement regular
2929- expression pattern matching using the same syntax and semantics as
3030- Perl 5. PCRE has its own native API, as well as a set of wrapper
3131- functions that correspond to the POSIX regular expression API. The
3232- PCRE library is free, even for building proprietary software.
3333- '';
3434-3535- platforms = stdenv.lib.platforms.all;
3636- maintainers = [ stdenv.lib.maintainers.simons ];
3737- };
3838-}
+2-2
pkgs/development/libraries/pcre/default.nix
···11{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true }:
2233stdenv.mkDerivation rec {
44- name = "pcre-8.21";
44+ name = "pcre-8.31";
5566 src = fetchurl {
77 url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
88- sha256 = "1qwrqldbwszbmr4cw4f0xmcl889cmmjbf58l9vxn89zw26fm1f54";
88+ sha256 = "5778a02535473c7ee7838ea598c19f451e63cf5eec0bf0307a688301c9078c3c";
99 };
10101111 # The compiler on Darwin crashes with an internal error while building the