···1-{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true }:
2-3-stdenv.mkDerivation rec {
4- name = "pcre-8.30";
5-6- src = fetchurl {
7- url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
8- sha256 = "c1113fd7db934e97ad8b3917d432e5b642e9eb9afd127eb797804937c965f4ac";
9- };
10-11- # The compiler on Darwin crashes with an internal error while building the
12- # C++ interface. Disabling optimizations on that platform remedies the
13- # problem. In case we ever update the Darwin GCC version, the exception for
14- # that platform ought to be removed.
15- configureFlags = ''
16- ${if unicodeSupport then "--enable-unicode-properties" else ""}
17- ${if !cplusplusSupport then "--disable-cpp" else ""}
18- '' + stdenv.lib.optionalString stdenv.isDarwin "CXXFLAGS=-O0";
19-20- doCheck = !stdenv.isCygwin; # XXX: test failure on Cygwin
21-22- meta = {
23- homepage = "http://www.pcre.org/";
24- description = "A library for Perl Compatible Regular Expressions";
25- license = "BSD-3";
26-27- longDescription = ''
28- The PCRE library is a set of functions that implement regular
29- expression pattern matching using the same syntax and semantics as
30- Perl 5. PCRE has its own native API, as well as a set of wrapper
31- functions that correspond to the POSIX regular expression API. The
32- PCRE library is free, even for building proprietary software.
33- '';
34-35- platforms = stdenv.lib.platforms.all;
36- maintainers = [ stdenv.lib.maintainers.simons ];
37- };
38-}
···00000000000000000000000000000000000000
+2-2
pkgs/development/libraries/pcre/default.nix
···1{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true }:
23stdenv.mkDerivation rec {
4- name = "pcre-8.21";
56 src = fetchurl {
7 url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
8- sha256 = "1qwrqldbwszbmr4cw4f0xmcl889cmmjbf58l9vxn89zw26fm1f54";
9 };
1011 # The compiler on Darwin crashes with an internal error while building the
···1{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true }:
23stdenv.mkDerivation rec {
4+ name = "pcre-8.31";
56 src = fetchurl {
7 url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
8+ sha256 = "5778a02535473c7ee7838ea598c19f451e63cf5eec0bf0307a688301c9078c3c";
9 };
1011 # The compiler on Darwin crashes with an internal error while building the