pthread-win32: don't propagate `mingw_headers'

This commit is contained in:
Ludovic Courtès 2013-03-29 21:35:11 +01:00
parent 4576896ef5
commit ea304762fe

View File

@ -28,6 +28,14 @@ stdenv.mkDerivation {
cp -v pthread.h semaphore.h sched.h "$out/include"
'';
postFixup =
# By default `mingw_headers' is propagated. Prevent that, because
# otherwise MinGW headers appear twice in `-I', and thus the
# "#include_next <float.h>" in MinGW's <float.h> picks up itself instead
# of picking up GCC's (hence, FLT_RADIX is left undefined, for instance.)
'' rm -f "$out/nix-support/propagated-build-inputs"
'';
meta = {
description = "POSIX threads for Woe32";