Skip to content

Commit

Permalink
mingw: use current package set for headers
Browse files Browse the repository at this point in the history
gccCrossStageStatic should not need targetPackages.

Fixes NixOS#53587.
  • Loading branch information
matthewbauer committed Jan 7, 2019
1 parent 8e05911 commit 0307203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/os-specific/windows/mingw-w64/default.nix
Expand Up @@ -21,6 +21,6 @@ in stdenv.mkDerivation {
patches = [ ./osvi.patch ];

meta = {
platforms = stdenv.lib.platforms.windows;
platforms = stdenv.lib.platforms.all;
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -6790,7 +6790,7 @@ in
# built with, and use, that cross-compiled libc.
gccCrossStageStatic = assert stdenv.targetPlatform != stdenv.hostPlatform; let
libcCross1 =
if stdenv.targetPlatform.libc == "msvcrt" then targetPackages.windows.mingw_w64_headers
if stdenv.targetPlatform.libc == "msvcrt" then windows.mingw_w64_headers
else if stdenv.targetPlatform.libc == "libSystem" then darwin.xcode
else null;
binutils1 = wrapBintoolsWith {
Expand Down

0 comments on commit 0307203

Please sign in to comment.