summary refs log tree commit diff
path: root/pkgs/os-specific/windows
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-03-29 21:35:11 +0100
committerLudovic Courtès <ludo@gnu.org>2013-03-29 21:46:38 +0100
commitea304762fee1f13ad220c784299261d048761929 (patch)
treea60380d24d9dc9dd0125808ef4ef8acc07d97fad /pkgs/os-specific/windows
parent4576896ef55e57e914f97a6599ed4b74e4bd4641 (diff)
downloadnixpkgs-ea304762fee1f13ad220c784299261d048761929.tar
nixpkgs-ea304762fee1f13ad220c784299261d048761929.tar.gz
nixpkgs-ea304762fee1f13ad220c784299261d048761929.tar.bz2
nixpkgs-ea304762fee1f13ad220c784299261d048761929.tar.lz
nixpkgs-ea304762fee1f13ad220c784299261d048761929.tar.xz
nixpkgs-ea304762fee1f13ad220c784299261d048761929.tar.zst
nixpkgs-ea304762fee1f13ad220c784299261d048761929.zip
pthread-win32: don't propagate `mingw_headers'
Diffstat (limited to 'pkgs/os-specific/windows')
-rw-r--r--pkgs/os-specific/windows/pthread-w32/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/os-specific/windows/pthread-w32/default.nix b/pkgs/os-specific/windows/pthread-w32/default.nix
index 39afd119643..cd417eb9ad0 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 <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";