Skip to content

Commit

Permalink
overrideSDK: fix missing host platform inside of override
Browse files Browse the repository at this point in the history
(cherry picked from commit cfe063d)
  • Loading branch information
RossComputerGuy authored and Ericson2314 committed Jul 24, 2024
1 parent 441df69 commit 387a561
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/stdenv/darwin/override-sdk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,13 @@ let
stdenv.override (
old:
{
buildPlatform = mkPlatform newVersion old.buildPlatform;
hostPlatform = mkPlatform newVersion old.hostPlatform;
targetPlatform = mkPlatform newVersion old.targetPlatform;
buildPlatform = mkPlatform newVersion stdenv.buildPlatform;
hostPlatform = mkPlatform newVersion stdenv.hostPlatform;
targetPlatform = mkPlatform newVersion stdenv.targetPlatform;
}
# Only perform replacements if the SDK version has changed. Changing only the
# deployment target does not require replacing the libc or SDK dependencies.
// lib.optionalAttrs (old.hostPlatform.darwinSdkVersion != darwinSdkVersion) {
// lib.optionalAttrs (stdenv.hostPlatform.darwinSdkVersion != darwinSdkVersion) {
allowedRequisites = null;

mkDerivationFromStdenv = extendMkDerivationArgs old (mapInputsToSDK [
Expand Down

0 comments on commit 387a561

Please sign in to comment.