···57 throwUnsupportedGuestSystem = guestMap:
58 throw "Unsupported guest system ${guestSystem} for host ${hostSystem}, supported: ${lib.concatStringsSep ", " (lib.attrNames guestMap)}";
59 in
60- if hostStdenv.isLinux then
61 linuxHostGuestMatrix.${guestSystem} or "${qemuPkg}/bin/qemu-kvm"
62 else
63 let
···57 throwUnsupportedGuestSystem = guestMap:
58 throw "Unsupported guest system ${guestSystem} for host ${hostSystem}, supported: ${lib.concatStringsSep ", " (lib.attrNames guestMap)}";
59 in
60+ if hostStdenv.hostPlatform.isLinux then
61 linuxHostGuestMatrix.${guestSystem} or "${qemuPkg}/bin/qemu-kvm"
62 else
63 let
···230231 # workaround for
232 # https://github.com/root-project/root/issues/14778
233- env.NIX_LDFLAGS = lib.optionalString (!stdenv.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}";
234235 # To use the debug information on the fly (without installation)
236 # add the outPath of root.debug into NIX_DEBUG_INFO_DIRS (in PATH-like format)
···230231 # workaround for
232 # https://github.com/root-project/root/issues/14778
233+ env.NIX_LDFLAGS = lib.optionalString (!stdenv.hostPlatform.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}";
234235 # To use the debug information on the fly (without installation)
236 # add the outPath of root.debug into NIX_DEBUG_INFO_DIRS (in PATH-like format)
···2324 meta = {
25 platforms = lib.platforms.all;
26- broken = stdenv.isDarwin;
27 description = "A disk usage calculator for Linux";
28 homepage = "https://codeberg.org/201984/dut";
29 license = lib.licenses.gpl3;
···2324 meta = {
25 platforms = lib.platforms.all;
26+ broken = stdenv.hostPlatform.isDarwin;
27 description = "A disk usage calculator for Linux";
28 homepage = "https://codeberg.org/201984/dut";
29 license = lib.licenses.gpl3;
+1-1
pkgs/by-name/en/ente-cli/package.nix
···6263 passthru = {
64 # only works on linux, see comment above about ENTE_CLI_SECRETS_PATH on darwin
65- tests.version = lib.optionalAttrs stdenv.isLinux (
66 testers.testVersion {
67 package = ente-cli;
68 command = ''
···6263 passthru = {
64 # only works on linux, see comment above about ENTE_CLI_SECRETS_PATH on darwin
65+ tests.version = lib.optionalAttrs stdenv.hostPlatform.isLinux (
66 testers.testVersion {
67 package = ente-cli;
68 command = ''
···35 # Notice that due to some legacy/bug in buildGoModule, the build isn't
36 # failing even the tests are, as we get a false-positive the output
37 # filtering: https://github.com/NixOS/nixpkgs/issues/349468
38- doCheck = stdenv.isLinux;
3940 # The tests want to copy /bin/bash and /bin/ls, but we don't have those.
41 # As these are interesting e2e tests to check if things work, we substitute
···35 # Notice that due to some legacy/bug in buildGoModule, the build isn't
36 # failing even the tests are, as we get a false-positive the output
37 # filtering: https://github.com/NixOS/nixpkgs/issues/349468
38+ doCheck = stdenv.hostPlatform.isLinux;
3940 # The tests want to copy /bin/bash and /bin/ls, but we don't have those.
41 # As these are interesting e2e tests to check if things work, we substitute
···37 ];
3839 # test is flaky on darwin
40- disabledTests = if stdenv.isDarwin then [ "test_function_throttled" ] else null;
4142 pythonNamespaces = [ "jaraco" ];
43
···37 ];
3839 # test is flaky on darwin
40+ disabledTests = if stdenv.hostPlatform.isDarwin then [ "test_function_throttled" ] else null;
4142 pythonNamespaces = [ "jaraco" ];
43
···2324 nativeBuildInputs = [ pkg-config ];
2526- buildInputs = [ dbus ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
2728 meta = with lib; {
29 description = "VR Lighthouse power state management";
···2324 nativeBuildInputs = [ pkg-config ];
2526+ buildInputs = [ dbus ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ];
2728 meta = with lib; {
29 description = "VR Lighthouse power state management";
+1-1
pkgs/tools/typesetting/tex/texlive/bin.nix
···267 ''
268 # force XeTeX to use fontconfig instead of Core Text, so that fonts can be made available via FONTCONFIG_FILE,
269 # by tricking configure into thinking that the relevant test result is already in the config cache
270- + lib.optionalString stdenv.isDarwin ''
271 export kpse_cv_have_ApplicationServices=no
272 '';
273
···267 ''
268 # force XeTeX to use fontconfig instead of Core Text, so that fonts can be made available via FONTCONFIG_FILE,
269 # by tricking configure into thinking that the relevant test result is already in the config cache
270+ + lib.optionalString stdenv.hostPlatform.isDarwin ''
271 export kpse_cv_have_ApplicationServices=no
272 '';
273
+2-2
pkgs/top-level/all-packages.nix
···95119512 gst_all_1 = recurseIntoAttrs (callPackage ../development/libraries/gstreamer {
9513 callPackage = newScope gst_all_1;
9514- stdenv = if stdenv.isDarwin then overrideSDK stdenv "12.3" else stdenv;
9515 inherit (darwin.apple_sdk_12_3.frameworks) AudioToolbox AVFoundation Cocoa CoreFoundation CoreMedia CoreServices CoreVideo DiskArbitration Foundation IOKit MediaToolbox OpenGL Security SystemConfiguration VideoToolbox;
9516 inherit (darwin.apple_sdk_12_3.libs) xpc;
9517 });
···10490 else callPackage ../development/libraries/ncurses {
10491 # ncurses is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv.
10492 stdenv =
10493- if stdenv.isDarwin then
10494 darwin.bootstrapStdenv
10495 else
10496 stdenv;
···95119512 gst_all_1 = recurseIntoAttrs (callPackage ../development/libraries/gstreamer {
9513 callPackage = newScope gst_all_1;
9514+ stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "12.3" else stdenv;
9515 inherit (darwin.apple_sdk_12_3.frameworks) AudioToolbox AVFoundation Cocoa CoreFoundation CoreMedia CoreServices CoreVideo DiskArbitration Foundation IOKit MediaToolbox OpenGL Security SystemConfiguration VideoToolbox;
9516 inherit (darwin.apple_sdk_12_3.libs) xpc;
9517 });
···10490 else callPackage ../development/libraries/ncurses {
10491 # ncurses is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv.
10492 stdenv =
10493+ if stdenv.hostPlatform.isDarwin then
10494 darwin.bootstrapStdenv
10495 else
10496 stdenv;