overrideSDK: fix missing host platform inside of override

This commit is contained in:
Tristan Ross
2024-07-08 17:21:55 -07:00
parent 80e3c2c5d0
commit cfe063d174
+4 -4
View File
@@ -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 [