lol
at 15.09-beta 47 lines 1.4 kB view raw
1{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true 2, windows ? null 3}: 4 5with stdenv.lib; 6 7stdenv.mkDerivation rec { 8 name = "pcre-8.37"; 9 10 src = fetchurl { 11 url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2"; 12 sha256 = "17bqykp604p7376wj3q2nmjdhrb6v1ny8q08zdwi7qvc02l9wrsi"; 13 }; 14 15 outputs = [ "out" "doc" "man" ]; 16 17 configureFlags = '' 18 --enable-jit 19 ${if unicodeSupport then "--enable-unicode-properties" else ""} 20 ${if !cplusplusSupport then "--disable-cpp" else ""} 21 ''; 22 23 doCheck = with stdenv; !(isCygwin || isFreeBSD); 24 # XXX: test failure on Cygwin 25 # we are running out of stack on both freeBSDs on Hydra 26 27 crossAttrs = optionalAttrs (stdenv.cross.libc == "msvcrt") { 28 buildInputs = [ windows.mingw_w64_pthreads.crossDrv ]; 29 }; 30 31 meta = { 32 homepage = "http://www.pcre.org/"; 33 description = "A library for Perl Compatible Regular Expressions"; 34 license = stdenv.lib.licenses.bsd3; 35 36 longDescription = '' 37 The PCRE library is a set of functions that implement regular 38 expression pattern matching using the same syntax and semantics as 39 Perl 5. PCRE has its own native API, as well as a set of wrapper 40 functions that correspond to the POSIX regular expression API. The 41 PCRE library is free, even for building proprietary software. 42 ''; 43 44 platforms = platforms.all; 45 maintainers = [ maintainers.simons ]; 46 }; 47}