From ea304762fee1f13ad220c784299261d048761929 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 29 Mar 2013 21:35:11 +0100 Subject: pthread-win32: don't propagate `mingw_headers' --- pkgs/os-specific/windows/pthread-w32/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkgs') diff --git a/pkgs/os-specific/windows/pthread-w32/default.nix b/pkgs/os-specific/windows/pthread-w32/default.nix index 39afd119643b9..cd417eb9ad097 100644 --- a/pkgs/os-specific/windows/pthread-w32/default.nix +++ b/pkgs/os-specific/windows/pthread-w32/default.nix @@ -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 " in MinGW's 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"; -- cgit 1.4.1