git.iko.soy/typeable/nixpkgs
on master help sign in
pcre: Modernize and fix cross
commitff6ab1b3c4f13bb2972b06ab9b881b49ef7b521b authorJohn Ericson <Ericson2314@Yahoo.com> dateSat 3 Jun 2017, 21:11 (9 years ago) parentb93e603
1 file changed+6−6
pkgs/development/libraries/pcre/default.nix+6−6
pkgs/development/libraries/pcre/default.nix+6−6
@@ -1,5 +1,7 @@
11{ stdenv, fetchurl
2−, windows ? null, variant ? null, pcre
2+, pcre, windows ? null
3+, buildPlatform, hostPlatform
4+, variant ? null
35}:
46
57with stdenv.lib;
@@ -31,7 +33,9 @@ in stdenv.mkDerivation rec {
3133
3234 patches = [ ./CVE-2017-7186.patch ];
3335
34− doCheck = with stdenv; !(isCygwin || isFreeBSD);
36+ buildInputs = optional (hostPlatform.libc == "msvcrt") windows.mingw_w64_pthreads;
37+
38+ doCheck = !(with hostPlatform; isCygwin || isFreeBSD) && hostPlatform == buildPlatform;
3539 # XXX: test failure on Cygwin
3640 # we are running out of stack on both freeBSDs on Hydra
3741
@@ -42,10 +46,6 @@ in stdenv.mkDerivation rec {
4246 ln -sf -t "$out/lib/" '${pcre.out}'/lib/libpcre{,posix}.{so.*.*.*,*dylib}
4347 '';
4448
45− crossAttrs = optionalAttrs (stdenv.cross.libc == "msvcrt") {
46− buildInputs = [ windows.mingw_w64_pthreads.crossDrv ];
47− };
48−
4949 meta = {
5050 homepage = "http://www.pcre.org/";
5151 description = "A library for Perl Compatible Regular Expressions";