darwin.cctools: Fix build on linux

(cherry picked from commit 11f4921cdf)
This commit is contained in:
Shea Levy
2016-09-17 08:44:38 -04:00
parent 7de410c0d3
commit beb349339d

View File

@@ -10865,7 +10865,10 @@ in
xctoolchain = xcode.toolchain;
};
cctools = (callPackage ../os-specific/darwin/cctools/port.nix { inherit libobjc; }).native;
cctools = (callPackage ../os-specific/darwin/cctools/port.nix {
inherit libobjc;
stdenv = if stdenv.isDarwin then stdenv else libcxxStdenv;
}).native;
cf-private = callPackage ../os-specific/darwin/cf-private {
inherit (apple-source-releases) CF;