···5757 throwUnsupportedGuestSystem = guestMap:
5858 throw "Unsupported guest system ${guestSystem} for host ${hostSystem}, supported: ${lib.concatStringsSep ", " (lib.attrNames guestMap)}";
5959 in
6060- if hostStdenv.isLinux then
6060+ if hostStdenv.hostPlatform.isLinux then
6161 linuxHostGuestMatrix.${guestSystem} or "${qemuPkg}/bin/qemu-kvm"
6262 else
6363 let
···230230231231 # workaround for
232232 # https://github.com/root-project/root/issues/14778
233233- env.NIX_LDFLAGS = lib.optionalString (!stdenv.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}";
233233+ env.NIX_LDFLAGS = lib.optionalString (!stdenv.hostPlatform.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}";
234234235235 # To use the debug information on the fly (without installation)
236236 # add the outPath of root.debug into NIX_DEBUG_INFO_DIRS (in PATH-like format)
···3535 # Notice that due to some legacy/bug in buildGoModule, the build isn't
3636 # failing even the tests are, as we get a false-positive the output
3737 # filtering: https://github.com/NixOS/nixpkgs/issues/349468
3838- doCheck = stdenv.isLinux;
3838+ doCheck = stdenv.hostPlatform.isLinux;
39394040 # The tests want to copy /bin/bash and /bin/ls, but we don't have those.
4141 # As these are interesting e2e tests to check if things work, we substitute
···3737 ];
38383939 # test is flaky on darwin
4040- disabledTests = if stdenv.isDarwin then [ "test_function_throttled" ] else null;
4040+ disabledTests = if stdenv.hostPlatform.isDarwin then [ "test_function_throttled" ] else null;
41414242 pythonNamespaces = [ "jaraco" ];
4343
···267267 ''
268268 # force XeTeX to use fontconfig instead of Core Text, so that fonts can be made available via FONTCONFIG_FILE,
269269 # by tricking configure into thinking that the relevant test result is already in the config cache
270270- + lib.optionalString stdenv.isDarwin ''
270270+ + lib.optionalString stdenv.hostPlatform.isDarwin ''
271271 export kpse_cv_have_ApplicationServices=no
272272 '';
273273
+2-2
pkgs/top-level/all-packages.nix
···9511951195129512 gst_all_1 = recurseIntoAttrs (callPackage ../development/libraries/gstreamer {
95139513 callPackage = newScope gst_all_1;
95149514- stdenv = if stdenv.isDarwin then overrideSDK stdenv "12.3" else stdenv;
95149514+ stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "12.3" else stdenv;
95159515 inherit (darwin.apple_sdk_12_3.frameworks) AudioToolbox AVFoundation Cocoa CoreFoundation CoreMedia CoreServices CoreVideo DiskArbitration Foundation IOKit MediaToolbox OpenGL Security SystemConfiguration VideoToolbox;
95169516 inherit (darwin.apple_sdk_12_3.libs) xpc;
95179517 });
···1049010490 else callPackage ../development/libraries/ncurses {
1049110491 # ncurses is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv.
1049210492 stdenv =
1049310493- if stdenv.isDarwin then
1049310493+ if stdenv.hostPlatform.isDarwin then
1049410494 darwin.bootstrapStdenv
1049510495 else
1049610496 stdenv;