treewide: stdenv.is -> stdenv.hostPlatform.is (#356363)

* treewide: stdenv.is -> stdenv.hostPlatform.is

* treewide: nixfmt due to ci error

authored by

Masum Reza and committed by
GitHub
e1383133 0fdc9185

+203 -194
+1 -1
nixos/lib/qemu-common.nix
··· 57 57 throwUnsupportedGuestSystem = guestMap: 58 58 throw "Unsupported guest system ${guestSystem} for host ${hostSystem}, supported: ${lib.concatStringsSep ", " (lib.attrNames guestMap)}"; 59 59 in 60 - if hostStdenv.isLinux then 60 + if hostStdenv.hostPlatform.isLinux then 61 61 linuxHostGuestMatrix.${guestSystem} or "${qemuPkg}/bin/qemu-kvm" 62 62 else 63 63 let
+44 -42
pkgs/applications/radio/sdrangel/default.nix
··· 69 69 wrapQtAppsHook 70 70 ]; 71 71 72 - buildInputs = [ 73 - airspy 74 - airspyhf 75 - aptdec 76 - boost 77 - cm256cc 78 - codec2 79 - dab_lib 80 - dsdcc 81 - faad2 82 - ffmpeg 83 - fftwFloat 84 - flac 85 - glew 86 - hackrf 87 - hidapi 88 - libbladeRF 89 - libiio 90 - libopus 91 - libpulseaudio 92 - libusb1 93 - limesuite 94 - mbelib 95 - opencv4 96 - qt5compat 97 - qtcharts 98 - qtdeclarative 99 - qtlocation 100 - qtmultimedia 101 - qtscxml 102 - qtserialport 103 - qtspeech 104 - qttools 105 - qtwebsockets 106 - qtwebengine 107 - rtl-sdr 108 - serialdv 109 - sgp4 110 - soapysdr-with-plugins 111 - uhd 112 - zlib 113 - ] ++ lib.optionals stdenv.isLinux [ qtwayland ] ++ lib.optionals withSDRplay [ sdrplay ]; 72 + buildInputs = 73 + [ 74 + airspy 75 + airspyhf 76 + aptdec 77 + boost 78 + cm256cc 79 + codec2 80 + dab_lib 81 + dsdcc 82 + faad2 83 + ffmpeg 84 + fftwFloat 85 + flac 86 + glew 87 + hackrf 88 + hidapi 89 + libbladeRF 90 + libiio 91 + libopus 92 + libpulseaudio 93 + libusb1 94 + limesuite 95 + mbelib 96 + opencv4 97 + qt5compat 98 + qtcharts 99 + qtdeclarative 100 + qtlocation 101 + qtmultimedia 102 + qtscxml 103 + qtserialport 104 + qtspeech 105 + qttools 106 + qtwebsockets 107 + qtwebengine 108 + rtl-sdr 109 + serialdv 110 + sgp4 111 + soapysdr-with-plugins 112 + uhd 113 + zlib 114 + ] 115 + ++ lib.optionals stdenv.hostPlatform.isLinux [ qtwayland ] ++ lib.optionals withSDRplay [ sdrplay ]; 114 116 115 117 cmakeFlags = [ 116 118 "-DAPT_DIR=${aptdec}"
+1 -1
pkgs/applications/science/misc/root/default.nix
··· 230 230 231 231 # workaround for 232 232 # https://github.com/root-project/root/issues/14778 233 - env.NIX_LDFLAGS = lib.optionalString (!stdenv.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}"; 233 + env.NIX_LDFLAGS = lib.optionalString (!stdenv.hostPlatform.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}"; 234 234 235 235 # To use the debug information on the fly (without installation) 236 236 # add the outPath of root.debug into NIX_DEBUG_INFO_DIRS (in PATH-like format)
+1 -1
pkgs/build-support/rust/build-rust-package/default.nix
··· 104 104 105 105 stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "cargoLock" ]) // lib.optionalAttrs useSysroot { 106 106 RUSTFLAGS = "--sysroot ${sysroot} " + (args.RUSTFLAGS or ""); 107 - } // lib.optionalAttrs (stdenv.isDarwin && buildType == "debug") { 107 + } // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && buildType == "debug") { 108 108 RUSTFLAGS = 109 109 "-C split-debuginfo=packed " 110 110 + lib.optionalString useSysroot "--sysroot ${sysroot} "
+1 -1
pkgs/by-name/al/almo/package.nix
··· 27 27 makeFlags = [ "all" ]; 28 28 29 29 # remove darwin-only linker flag on linux 30 - postPatch = lib.optionalString (!stdenv.isDarwin) '' 30 + postPatch = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' 31 31 substituteInPlace scripts/pybind.sh \ 32 32 --replace-fail " -undefined dynamic_lookup" "" 33 33 '';
+2 -2
pkgs/by-name/ar/arti/package.nix
··· 28 28 29 29 buildInputs = 30 30 [ sqlite ] 31 - ++ lib.optionals stdenv.isLinux [ openssl ] 32 - ++ lib.optionals stdenv.isDarwin ( 31 + ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ] 32 + ++ lib.optionals stdenv.hostPlatform.isDarwin ( 33 33 with darwin.apple_sdk.frameworks; 34 34 [ 35 35 CoreServices
+1 -1
pkgs/by-name/ba/backrest/package.nix
··· 51 51 [ 52 52 "TestServeIndex" # Fails with handler returned wrong content encoding 53 53 ] 54 - ++ lib.optionals stdenv.isDarwin [ 54 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 55 55 "TestBackup" # relies on ionice 56 56 ]; 57 57 in
+2 -2
pkgs/by-name/bi/binsider/package.nix
··· 18 18 19 19 cargoHash = "sha256-EGqoHMkBPIhKV/PozArQ62bH/Gqc92S6ZabTjmIbQeE="; 20 20 21 - buildNoDefaultFeatures = !stdenv.isLinux; 21 + buildNoDefaultFeatures = !stdenv.hostPlatform.isLinux; 22 22 23 - buildInputs = lib.optionals stdenv.isDarwin ( 23 + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin ( 24 24 with darwin.apple_sdk.frameworks; 25 25 [ 26 26 AppKit
+1 -1
pkgs/by-name/bi/bitwarden-desktop/package.nix
··· 167 167 168 168 mkdir $out 169 169 170 - pushd apps/desktop/dist/linux-${lib.optionalString stdenv.isAarch64 "arm64-"}unpacked 170 + pushd apps/desktop/dist/linux-${lib.optionalString stdenv.hostPlatform.isAarch64 "arm64-"}unpacked 171 171 mkdir -p $out/opt/Bitwarden 172 172 cp -r locales resources{,.pak} $out/opt/Bitwarden 173 173 popd
+1 -1
pkgs/by-name/ca/cargo-tauri/test-app.nix
··· 50 50 51 51 buildInputs = 52 52 [ openssl ] 53 - ++ lib.optionals stdenv.isLinux [ 53 + ++ lib.optionals stdenv.hostPlatform.isLinux [ 54 54 glib-networking 55 55 libayatana-appindicator 56 56 webkitgtk_4_1
+1 -1
pkgs/by-name/ch/chatd/package.nix
··· 34 34 makeWrapper 35 35 electron 36 36 pkg-config 37 - ] ++ lib.optional stdenv.isLinux autoPatchelfHook; # for onnx libs 37 + ] ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook; # for onnx libs 38 38 39 39 buildInputs = [ 40 40 (lib.getLib stdenv.cc.cc) # for libstdc++.so, required by onnxruntime
+1 -1
pkgs/by-name/co/conserve/package.nix
··· 19 19 20 20 cargoHash = "sha256-IP9x3n5RdI+TKOhMBWEfw9P2CROcC0SmEsmMVaXjiDE="; 21 21 22 - buildInputs = lib.optionals (stdenv.isDarwin) [ 22 + buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin) [ 23 23 darwin.apple_sdk.frameworks.Security 24 24 ]; 25 25
+1 -1
pkgs/by-name/co/copycat/package.nix
··· 19 19 20 20 cargoHash = "sha256-oNX1MUpOjRG02FHOU7zpktLAYKu/1+R2d96jC/VA0co="; 21 21 22 - buildInputs = lib.optionals (stdenv.isDarwin) [ 22 + buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin) [ 23 23 darwin.apple_sdk_11_0.frameworks.AppKit 24 24 ]; 25 25
+2 -2
pkgs/by-name/cy/cyrus-imapd/package.nix
··· 100 100 bison 101 101 libsrs2 102 102 ] 103 - ++ lib.optionals stdenv.isLinux [ libcap ] 103 + ++ lib.optionals stdenv.hostPlatform.isLinux [ libcap ] 104 104 ++ lib.optionals (enableHttp || enableCalalarmd || enableJMAP) [ 105 105 brotli.dev 106 106 libical.dev ··· 130 130 cyrus_sasl 131 131 ] 132 132 # Darwin doesn't have libuuid, try to build without it 133 - ++ lib.optional (!stdenv.isDarwin) libuuid; 133 + ++ lib.optional (!stdenv.hostPlatform.isDarwin) libuuid; 134 134 imapLibs = managesieveLibs ++ [ pcre2 ]; 135 135 mkLibsString = lib.strings.concatMapStringsSep " " (l: "-L${lib.getLib l}/lib"); 136 136 in
+1 -1
pkgs/by-name/du/dut/package.nix
··· 23 23 24 24 meta = { 25 25 platforms = lib.platforms.all; 26 - broken = stdenv.isDarwin; 26 + broken = stdenv.hostPlatform.isDarwin; 27 27 description = "A disk usage calculator for Linux"; 28 28 homepage = "https://codeberg.org/201984/dut"; 29 29 license = lib.licenses.gpl3;
+1 -1
pkgs/by-name/en/ente-cli/package.nix
··· 62 62 63 63 passthru = { 64 64 # only works on linux, see comment above about ENTE_CLI_SECRETS_PATH on darwin 65 - tests.version = lib.optionalAttrs stdenv.isLinux ( 65 + tests.version = lib.optionalAttrs stdenv.hostPlatform.isLinux ( 66 66 testers.testVersion { 67 67 package = ente-cli; 68 68 command = ''
+5 -2
pkgs/by-name/er/erlang-language-platform/package.nix
··· 5 5 autoPatchelfHook, 6 6 }: 7 7 let 8 - arch = if stdenv.isAarch64 then "aarch64" else "x86_64"; 8 + arch = if stdenv.hostPlatform.isAarch64 then "aarch64" else "x86_64"; 9 9 release = 10 - if stdenv.isDarwin then "macos-${arch}-apple-darwin" else "linux-${arch}-unknown-linux-gnu"; 10 + if stdenv.hostPlatform.isDarwin then 11 + "macos-${arch}-apple-darwin" 12 + else 13 + "linux-${arch}-unknown-linux-gnu"; 11 14 12 15 hashes = { 13 16 linux-aarch64-unknown-linux-gnu = "sha256-vWMrq/uFU/uyuDnsxZK0ZyvtraVCZwvGjzO1a5QjR8g=";
+1 -1
pkgs/by-name/ex/exo/package.nix
··· 63 63 ]; 64 64 65 65 # Tests require `mlx` which is not supported on linux. 66 - doCheck = stdenv.isDarwin; 66 + doCheck = stdenv.hostPlatform.isDarwin; 67 67 68 68 passthru = { 69 69 updateScript = unstableGitUpdater {
+9 -9
pkgs/by-name/fi/fido2-manage/package.nix
··· 49 49 pkg-config 50 50 cmake 51 51 ] 52 - ++ lib.optionals stdenv.isLinux [ 52 + ++ lib.optionals stdenv.hostPlatform.isLinux [ 53 53 copyDesktopItems 54 54 imagemagick 55 55 ]; ··· 60 60 openssl 61 61 zlib 62 62 ] 63 - ++ lib.optionals stdenv.isLinux [ 63 + ++ lib.optionals stdenv.hostPlatform.isLinux [ 64 64 xterm 65 65 udev 66 66 pcsclite 67 67 ] 68 - ++ lib.optionals stdenv.isDarwin [ 68 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 69 69 libuv 70 70 libsolv 71 71 libcouchbase ··· 80 80 substituteInPlace ./src/libfido2.pc.in \ 81 81 --replace-fail "\''${prefix}/@CMAKE_INSTALL_LIBDIR@" "@CMAKE_INSTALL_FULL_LIBDIR@" 82 82 '' 83 - + lib.optionalString stdenv.isDarwin '' 83 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 84 84 substituteInPlace ./CMakeLists.txt \ 85 85 --replace-fail "/\''${CMAKE_INSTALL_LIBDIR}" "/lib" 86 86 ''; 87 87 88 88 postInstall = 89 - lib.optionalString stdenv.isLinux '' 89 + lib.optionalString stdenv.hostPlatform.isLinux '' 90 90 install $src/fido2-manage.sh $out/bin/fido2-manage 91 91 magick ${icon} -background none -gravity center -extent 512x512 token2.png 92 92 install -Dm444 token2.png $out/share/icons/hicolor/512x512/apps/token2.png 93 93 install $src/gui.py $out/bin/fido2-manage-gui 94 94 '' 95 - + lib.optionalString stdenv.isDarwin '' 95 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 96 96 install $src/fido2-manage-mac.sh $out/bin/fido2-manage 97 97 ''; 98 98 99 - desktopItems = lib.optionals stdenv.isLinux [ 99 + desktopItems = lib.optionals stdenv.hostPlatform.isLinux [ 100 100 (makeDesktopItem rec { 101 101 desktopName = "Fido2 Manager"; 102 102 name = "fido2-manage"; ··· 116 116 --replace-fail "./fido2-manage.sh" "fido2-manage" \ 117 117 --replace-fail "awk" "${gawk}/bin/awk" 118 118 '' 119 - + lib.optionalString stdenv.isLinux '' 119 + + lib.optionalString stdenv.hostPlatform.isLinux '' 120 120 substituteInPlace $out/bin/fido2-manage-gui \ 121 121 --replace-fail "./fido2-manage.sh" "$out/bin/fido2-manage" \ 122 122 --replace-fail "x-terminal-emulator" "${xterm}/bin/xterm" \ ··· 128 128 129 129 sed -i '1i #!${pythonEnv.interpreter}' $out/bin/fido2-manage-gui 130 130 '' 131 - + lib.optionalString stdenv.isDarwin '' 131 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 132 132 substituteInPlace $out/bin/fido2-manage \ 133 133 --replace-fail "ggrep" "${gnugrep}/bin/grep" 134 134 '';
+1 -1
pkgs/by-name/ga/gapcast/package.nix
··· 37 37 license = lib.licenses.gpl2Only; 38 38 maintainers = with lib.maintainers; [ fab ]; 39 39 mainProgram = "gapcast"; 40 - broken = stdenv.isDarwin; 40 + broken = stdenv.hostPlatform.isDarwin; 41 41 }; 42 42 }
+3 -3
pkgs/by-name/gm/gmt/package.nix
··· 34 34 NIX_CFLAGS_COMPILE = 35 35 lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration " 36 36 + lib.optionalString ( 37 - stdenv.isDarwin 37 + stdenv.hostPlatform.isDarwin 38 38 && lib.versionOlder (darwin.apple_sdk.MacOSX-SDK.version or darwin.apple_sdk.sdk.version) "13.3" 39 39 ) "-D__LAPACK_int=int"; 40 40 }; ··· 49 49 gshhg-gmt 50 50 ] 51 51 ++ ( 52 - if stdenv.isDarwin then 52 + if stdenv.hostPlatform.isDarwin then 53 53 with darwin.apple_sdk.frameworks; 54 54 [ 55 55 Accelerate ··· 83 83 (lib.cmakeBool "GMT_INSTALL_MODULE_LINKS" false) 84 84 (lib.cmakeFeature "LICENSE_RESTRICTED" "LGPL") 85 85 ] 86 - ++ (lib.optionals (!stdenv.isDarwin) [ 86 + ++ (lib.optionals (!stdenv.hostPlatform.isDarwin) [ 87 87 (lib.cmakeFeature "FFTW3_ROOT" "${fftwSinglePrec.dev}") 88 88 (lib.cmakeFeature "LAPACK_LIBRARY" "${lib.getLib lapack}/lib/liblapack.so") 89 89 (lib.cmakeFeature "BLAS_LIBRARY" "${lib.getLib blas}/lib/libblas.so")
+2 -2
pkgs/by-name/go/gomanagedocker/package.nix
··· 23 23 vendorHash = "sha256-M/jfQWCBrv7hZm450yLBmcjWtNSCziKOpfipxI6U9ak="; 24 24 25 25 buildInputs = 26 - lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ] 27 - ++ lib.optionals stdenv.isLinux [ xorg.libX11 ]; 26 + lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ] 27 + ++ lib.optionals stdenv.hostPlatform.isLinux [ xorg.libX11 ]; 28 28 29 29 ldflags = [ 30 30 "-s"
+27 -23
pkgs/by-name/im/imhex/package.nix
··· 39 39 let 40 40 baseStdenv = if stdenv.cc.isClang then llvmPackages.stdenv else stdenv; 41 41 in 42 - if stdenv.isDarwin then overrideSDK baseStdenv "11.0" else baseStdenv; 42 + if stdenv.hostPlatform.isDarwin then overrideSDK baseStdenv "11.0" else baseStdenv; 43 43 44 44 patterns_src = fetchFromGitHub { 45 45 name = "ImHex-Patterns-source-${patterns_version}"; ··· 75 75 ]; 76 76 77 77 # Comment out fixup_bundle in PostprocessBundle.cmake as we are not building a standalone application 78 - postPatch = lib.optionalString stdenv.isDarwin '' 78 + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' 79 79 substituteInPlace cmake/modules/PostprocessBundle.cmake \ 80 80 --replace-fail "fixup_bundle" "#fixup_bundle" 81 81 ''; ··· 89 89 pkg-config 90 90 rsync 91 91 ] 92 - ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ] 93 - ++ lib.optionals stdenv.isDarwin [ makeWrapper ]; 92 + ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ] 93 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ makeWrapper ]; 94 94 95 - buildInputs = [ 96 - capstone 97 - curl 98 - dbus 99 - file 100 - fmt 101 - glfw3 102 - gtk3 103 - jansson 104 - libGLU 105 - mbedtls 106 - nlohmann_json 107 - yara 108 - ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk_11_0.frameworks.UniformTypeIdentifiers ]; 95 + buildInputs = 96 + [ 97 + capstone 98 + curl 99 + dbus 100 + file 101 + fmt 102 + glfw3 103 + gtk3 104 + jansson 105 + libGLU 106 + mbedtls 107 + nlohmann_json 108 + yara 109 + ] 110 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 111 + darwin.apple_sdk_11_0.frameworks.UniformTypeIdentifiers 112 + ]; 109 113 110 114 # autoPatchelfHook only searches for *.so and *.so.*, and won't find *.hexpluglib 111 115 # however, we will append to RUNPATH ourselves 112 - autoPatchelfIgnoreMissingDeps = lib.optionals stdenv.isLinux [ "*.hexpluglib" ]; 113 - appendRunpaths = lib.optionals stdenv.isLinux [ 116 + autoPatchelfIgnoreMissingDeps = lib.optionals stdenv.hostPlatform.isLinux [ "*.hexpluglib" ]; 117 + appendRunpaths = lib.optionals stdenv.hostPlatform.isLinux [ 114 118 (lib.makeLibraryPath [ libGL ]) 115 119 "${placeholder "out"}/lib/imhex/plugins" 116 120 ]; ··· 118 122 cmakeFlags = [ 119 123 (lib.cmakeBool "IMHEX_OFFLINE_BUILD" true) 120 124 (lib.cmakeBool "IMHEX_COMPRESS_DEBUG_INFO" false) # avoids error: cannot compress debug sections (zstd not enabled) 121 - (lib.cmakeBool "IMHEX_GENERATE_PACKAGE" stdenv.isDarwin) 125 + (lib.cmakeBool "IMHEX_GENERATE_PACKAGE" stdenv.hostPlatform.isDarwin) 122 126 (lib.cmakeBool "USE_SYSTEM_CAPSTONE" true) 123 127 (lib.cmakeBool "USE_SYSTEM_CURL" true) 124 128 (lib.cmakeBool "USE_SYSTEM_FMT" true) ··· 129 133 130 134 # rsync is used here so we can not copy the _schema.json files 131 135 postInstall = 132 - if stdenv.isLinux then 136 + if stdenv.hostPlatform.isLinux then 133 137 '' 134 138 mkdir -p $out/share/imhex 135 139 rsync -av --exclude="*_schema.json" ${patterns_src}/{constants,encodings,includes,magic,nodes,patterns} $out/share/imhex 136 140 '' 137 - else if stdenv.isDarwin then 141 + else if stdenv.hostPlatform.isDarwin then 138 142 '' 139 143 mkdir -p $out/Applications 140 144 mv $out/imhex.app $out/Applications
+1 -1
pkgs/by-name/in/intelli-shell/package.nix
··· 32 32 openssl 33 33 sqlite 34 34 zlib 35 - ] ++ lib.optionals stdenv.isDarwin [ 35 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 36 36 darwin.apple_sdk.frameworks.Security 37 37 ]; 38 38
+6 -6
pkgs/by-name/ka/kando/package.nix
··· 45 45 zip 46 46 makeWrapper 47 47 ] 48 - ++ lib.optionals stdenv.isLinux [ 48 + ++ lib.optionals stdenv.hostPlatform.isLinux [ 49 49 wayland-scanner 50 50 copyDesktopItems 51 51 ]; 52 52 53 53 buildInputs = 54 - lib.optionals stdenv.isLinux [ 54 + lib.optionals stdenv.hostPlatform.isLinux [ 55 55 libxkbcommon 56 56 libX11 57 57 libXtst 58 58 libXi 59 59 wayland 60 60 ] 61 - ++ lib.optionals stdenv.isDarwin [ 61 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 62 62 apple-sdk_11 63 63 ]; 64 64 ··· 69 69 # use our own node headers since we skip downloading them 70 70 NIX_CFLAGS_COMPILE = "-I${nodejs}/include/node"; 71 71 # disable code signing on Darwin 72 - CSC_IDENTITY_AUTO_DISCOVERY = lib.optionalString stdenv.isDarwin "false"; 72 + CSC_IDENTITY_AUTO_DISCOVERY = lib.optionalString stdenv.hostPlatform.isDarwin "false"; 73 73 }; 74 74 75 75 postConfigure = '' ··· 103 103 installPhase = '' 104 104 runHook preInstall 105 105 106 - ${lib.optionalString stdenv.isLinux '' 106 + ${lib.optionalString stdenv.hostPlatform.isLinux '' 107 107 mkdir -p $out/share/kando 108 108 cp -r out/*/{locales,resources{,.pak}} $out/share/kando 109 109 ··· 115 115 --inherit-argv0 116 116 ''} 117 117 118 - ${lib.optionalString stdenv.isDarwin '' 118 + ${lib.optionalString stdenv.hostPlatform.isDarwin '' 119 119 mkdir -p $out/Applications 120 120 cp -r out/*/Kando.app $out/Applications 121 121 makeWrapper $out/Applications/Kando.app/Contents/MacOS/Kando $out/bin/kando
+1 -1
pkgs/by-name/kt/kty/package.nix
··· 31 31 [ 32 32 openssl 33 33 ] 34 - ++ lib.optionals stdenv.isDarwin ( 34 + ++ lib.optionals stdenv.hostPlatform.isDarwin ( 35 35 with darwin.apple_sdk; 36 36 [ 37 37 frameworks.SystemConfiguration
+1 -1
pkgs/by-name/ku/kubetui/package.nix
··· 21 21 "--skip=workers::kube::store::tests::kubeconfigからstateを生成" 22 22 ]; 23 23 24 - buildInputs = lib.optionals (stdenv.isDarwin) ( 24 + buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin) ( 25 25 with darwin.apple_sdk; 26 26 [ 27 27 frameworks.CoreGraphics
+1 -1
pkgs/by-name/la/LAStools/package.nix
··· 24 24 "format" 25 25 ]; 26 26 27 - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-Wno-narrowing"; 27 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-narrowing"; 28 28 29 29 nativeBuildInputs = [ 30 30 cmake
+2 -2
pkgs/by-name/li/lilv/package.nix
··· 37 37 (lib.mesonEnable "tests" (!stdenv.hostPlatform.isStatic)) 38 38 ] # Add nix and NixOS specific lv2 paths 39 39 # The default values are from: https://github.com/lv2/lilv/blob/master/src/lilv_config.h 40 - ++ lib.optional stdenv.isDarwin (lib.mesonOption "default_lv2_path" 40 + ++ lib.optional stdenv.hostPlatform.isDarwin (lib.mesonOption "default_lv2_path" 41 41 "~/.lv2:~/Library/Audio/Plug-Ins/LV2:" 42 42 + "/usr/local/lib/lv2:/usr/lib/lv2:" 43 43 + "/Library/Audio/Plug-Ins/LV2:" 44 44 + "~/.nix-profile/lib/lv2") 45 - ++ lib.optional stdenv.isLinux (lib.mesonOption "default_lv2_path" 45 + ++ lib.optional stdenv.hostPlatform.isLinux (lib.mesonOption "default_lv2_path" 46 46 "~/.lv2:/usr/local/lib/lv2:/usr/lib/lv2:" 47 47 + "~/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2"); 48 48
+2 -2
pkgs/by-name/ls/lsof/package.nix
··· 35 35 # Stop build scripts from searching global include paths 36 36 LSOF_INCLUDE = "${lib.getDev stdenv.cc.libc}/include"; 37 37 configurePhase = let genericFlags = "LSOF_CC=$CC LSOF_AR=\"$AR cr\" LSOF_RANLIB=$RANLIB"; 38 - linuxFlags = lib.optionalString stdenv.isLinux "LINUX_CONF_CC=$CC_FOR_BUILD"; 39 - freebsdFlags = lib.optionalString stdenv.isFreeBSD "FREEBSD_SYS=${freebsd.sys.src}/sys"; 38 + linuxFlags = lib.optionalString stdenv.hostPlatform.isLinux "LINUX_CONF_CC=$CC_FOR_BUILD"; 39 + freebsdFlags = lib.optionalString stdenv.hostPlatform.isFreeBSD "FREEBSD_SYS=${freebsd.sys.src}/sys"; 40 40 in "${genericFlags} ${linuxFlags} ${freebsdFlags} ./Configure -n ${dialect}"; 41 41 42 42 preBuild = ''
+1 -1
pkgs/by-name/lu/luaformatter/package.nix
··· 40 40 ]; 41 41 42 42 env.NIX_CFLAGS_COMPILE = lib.optionalString ( 43 - stdenv.isDarwin && stdenv.isx86_64 43 + stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 44 44 ) "-D_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION=1"; 45 45 46 46 meta = with lib; {
+1 -1
pkgs/by-name/ma/matrix-authentication-service/package.nix
··· 47 47 npmHooks.npmConfigHook 48 48 nodejs 49 49 (python3.withPackages (ps: [ ps.setuptools ])) # Used by gyp 50 - ] ++ lib.optional stdenv.isDarwin cctools; # libtool used by gyp; 50 + ] ++ lib.optional stdenv.hostPlatform.isDarwin cctools; # libtool used by gyp; 51 51 52 52 buildInputs = 53 53 [
+1 -1
pkgs/by-name/mi/misskey/package.nix
··· 33 33 pnpm.configHook 34 34 makeWrapper 35 35 python3 36 - ] ++ lib.optionals stdenv.isDarwin [ xcbuild.xcrun ]; 36 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild.xcrun ]; 37 37 38 38 # https://nixos.org/manual/nixpkgs/unstable/#javascript-pnpm 39 39 pnpmDeps = pnpm.fetchDeps {
+1 -1
pkgs/by-name/mk/mkuimage/package.nix
··· 35 35 # Notice that due to some legacy/bug in buildGoModule, the build isn't 36 36 # failing even the tests are, as we get a false-positive the output 37 37 # filtering: https://github.com/NixOS/nixpkgs/issues/349468 38 - doCheck = stdenv.isLinux; 38 + doCheck = stdenv.hostPlatform.isLinux; 39 39 40 40 # The tests want to copy /bin/bash and /bin/ls, but we don't have those. 41 41 # As these are interesting e2e tests to check if things work, we substitute
+1 -1
pkgs/by-name/nc/nchat/package.nix
··· 45 45 sqlite 46 46 zlib 47 47 ] 48 - ++ lib.optionals stdenv.isDarwin ( 48 + ++ lib.optionals stdenv.hostPlatform.isDarwin ( 49 49 with darwin.apple_sdk.frameworks; 50 50 [ 51 51 AppKit
+1 -1
pkgs/by-name/nc/ncmpcpp/package.nix
··· 67 67 '' 68 68 ./autogen.sh 69 69 '' 70 - + lib.optionalString stdenv.isDarwin '' 70 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 71 71 # std::result_of was removed in c++20 and unusable for clang16 72 72 substituteInPlace ./configure \ 73 73 --replace-fail "std=c++20" "std=c++17"
+1 -1
pkgs/by-name/ni/nix-serve/package.nix
··· 59 59 maintainers = [ maintainers.eelco ]; 60 60 license = licenses.lgpl21; 61 61 # See https://github.com/edolstra/nix-serve/issues/57 62 - broken = stdenv.isDarwin; 62 + broken = stdenv.hostPlatform.isDarwin; 63 63 platforms = nix.meta.platforms; 64 64 mainProgram = "nix-serve"; 65 65 };
+1 -1
pkgs/by-name/nu/numbat/package.nix
··· 62 62 atemu 63 63 ]; 64 64 # Failing tests on Darwin. 65 - broken = stdenv.isDarwin; 65 + broken = stdenv.hostPlatform.isDarwin; 66 66 }; 67 67 }
+1 -1
pkgs/by-name/op/openvi/package.nix
··· 21 21 buildInputs = [ 22 22 ncurses 23 23 perl 24 - ] ++ lib.optionals stdenv.isDarwin [ apple-sdk_11 ]; 24 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ]; 25 25 26 26 makeFlags = [ 27 27 "PREFIX=$(out)"
+1 -1
pkgs/by-name/ot/otel-desktop-viewer/package.nix
··· 27 27 28 28 ldflags = [ "-s" "-w" ]; 29 29 30 - buildInputs = lib.optional stdenv.isDarwin apple-sdk_12; 30 + buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_12; 31 31 32 32 passthru.tests.version = testers.testVersion { 33 33 inherit version;
+1 -1
pkgs/by-name/pa/packetry/package.nix
··· 34 34 gtk4 35 35 pango 36 36 ] 37 - ++ lib.optionals stdenv.isDarwin [ 37 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 38 38 apple-sdk_11 39 39 ]; 40 40
+2 -2
pkgs/by-name/pd/pdfarranger/package.nix
··· 22 22 hash = "sha256-94qziqJaKW8/L/6+U1yojxdG8BmeAStn+qbfGemTrVA="; 23 23 }; 24 24 25 - nativeBuildInputs = [ wrapGAppsHook3 ] ++ lib.optionals stdenv.isDarwin [ gettext ]; 25 + nativeBuildInputs = [ wrapGAppsHook3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ gettext ]; 26 26 27 - postPatch = lib.optionalString stdenv.isDarwin '' 27 + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' 28 28 LINTL="${lib.getLib gettext}/lib/libintl.8.dylib" 29 29 substituteInPlace pdfarranger/pdfarranger.py --replace-fail \ 30 30 "return 'libintl.8.dylib'" \
+1 -1
pkgs/by-name/po/positron-bin/package.nix
··· 26 26 inherit version pname; 27 27 28 28 src = 29 - if stdenv.isDarwin then 29 + if stdenv.hostPlatform.isDarwin then 30 30 fetchurl { 31 31 url = "https://github.com/posit-dev/positron/releases/download/${version}/Positron-${version}.dmg"; 32 32 hash = "sha256-5Ym42InDgFLGdZk0LYV1H0eC5WzmsYToG1KLdiGgTto=";
+3 -3
pkgs/by-name/q2/q2pro/package.nix
··· 21 21 wayland-scanner, 22 22 makeWrapper, 23 23 versionCheckHook, 24 - x11Support ? stdenv.isLinux, 25 - waylandSupport ? stdenv.isLinux, 24 + x11Support ? stdenv.hostPlatform.isLinux, 25 + waylandSupport ? stdenv.hostPlatform.isLinux, 26 26 }: 27 27 28 28 stdenv.mkDerivation (finalAttrs: rec { ··· 75 75 (lib.mesonBool "variable-fps" true) 76 76 (lib.mesonEnable "wayland" waylandSupport) 77 77 (lib.mesonEnable "x11" x11Support) 78 - (lib.mesonEnable "icmp-errors" stdenv.isLinux) 78 + (lib.mesonEnable "icmp-errors" stdenv.hostPlatform.isLinux) 79 79 (lib.mesonEnable "windows-crash-dumps" false) 80 80 ]; 81 81
+1 -1
pkgs/by-name/ra/rainfrog/package.nix
··· 22 22 23 23 cargoHash = "sha256-L0gXxV/3+5oRV/Ipm4sRqr9dh9AEChWhtILO3PaNxYY="; 24 24 25 - buildInputs = lib.optionals stdenv.isDarwin ( 25 + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin ( 26 26 with darwin.apple_sdk.frameworks; 27 27 [ 28 28 AppKit
+3 -3
pkgs/by-name/rq/rqbit/package.nix
··· 47 47 48 48 cargoHash = "sha256-esDUzzVm5J8fKftBfk5StJzN1YzLa1p0t7BsoxzrowI="; 49 49 50 - nativeBuildInputs = lib.optionals stdenv.isLinux [ 50 + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ 51 51 pkg-config 52 52 ]; 53 53 54 54 buildInputs = 55 - lib.optionals stdenv.isLinux [ openssl ] 56 - ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]; 55 + lib.optionals stdenv.hostPlatform.isLinux [ openssl ] 56 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]; 57 57 58 58 preConfigure = '' 59 59 mkdir -p crates/librqbit/webui/dist
+1 -1
pkgs/by-name/sa/sasquatch/package.nix
··· 23 23 hash = "sha256-0itva+j5WMKvueiUaO253UQ1S6W29xgtFvV4i3yvMtU="; 24 24 }; 25 25 26 - patches = lib.optional stdenv.isDarwin ./darwin.patch; 26 + patches = lib.optional stdenv.hostPlatform.isDarwin ./darwin.patch; 27 27 28 28 strictDeps = true; 29 29 nativeBuildInputs = [ which ];
+4 -4
pkgs/by-name/sc/scopehal-apps/package.nix
··· 48 48 shaderc 49 49 spirv-tools 50 50 ] 51 - ++ lib.optionals stdenv.isLinux [ 51 + ++ lib.optionals stdenv.hostPlatform.isLinux [ 52 52 wrapGAppsHook4 53 53 ]; 54 54 ··· 66 66 yaml-cpp 67 67 zstd 68 68 ] 69 - ++ lib.optionals stdenv.isLinux [ 69 + ++ lib.optionals stdenv.hostPlatform.isLinux [ 70 70 ffts 71 71 gtkmm3 72 72 libtirpc 73 73 ] 74 74 ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ] 75 - ++ lib.optionals stdenv.isDarwin [ 75 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 76 76 apple-sdk_11 77 77 (darwinMinVersionHook "10.15") 78 78 moltenvk ··· 84 84 --replace-fail '"/share/' '"/../share/' 85 85 ''; 86 86 87 - cmakeFlags = lib.optionals stdenv.isDarwin [ 87 + cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ 88 88 "-DCMAKE_INSTALL_RPATH=${lib.strings.makeLibraryPath [ vulkan-loader ]}" 89 89 ]; 90 90
+1 -1
pkgs/by-name/si/sioyek/package.nix
··· 57 57 ''; 58 58 59 59 postInstall = 60 - if stdenv.isDarwin then 60 + if stdenv.hostPlatform.isDarwin then 61 61 '' 62 62 cp -r pdf_viewer/shaders sioyek.app/Contents/MacOS/shaders 63 63 cp pdf_viewer/{prefs,prefs_user,keys,key_user}.config tutorial.pdf sioyek.app/Contents/MacOS/
+1 -1
pkgs/by-name/sn/snakemake/package.nix
··· 121 121 "test_output_file_cache_storage" 122 122 "test_storage" 123 123 ] 124 - ++ lib.optionals stdenv.isDarwin [ 124 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 125 125 # Unclear failure: 126 126 # AssertionError: expected successful execution 127 127 # `__darwinAllowLocalNetworking` doesn't help
+1 -1
pkgs/by-name/sq/sql-studio/package.nix
··· 42 42 license = lib.licenses.mit; 43 43 maintainers = [ lib.maintainers.frectonz ]; 44 44 platforms = lib.platforms.all; 45 - broken = stdenv.isDarwin; 45 + broken = stdenv.hostPlatform.isDarwin; 46 46 }; 47 47 }
+1 -1
pkgs/by-name/sq/sqruff/package.nix
··· 23 23 24 24 buildInputs = [ 25 25 rust-jemalloc-sys 26 - ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ]; 26 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ]; 27 27 28 28 # Patch the tests to find the binary 29 29 postPatch = ''
+1 -1
pkgs/by-name/st/styluslabs-write/package.nix
··· 102 102 atemu 103 103 ]; 104 104 platforms = with lib.platforms; linux ++ darwin ++ windows; 105 - broken = !stdenv.isLinux; 105 + broken = !stdenv.hostPlatform.isLinux; 106 106 mainProgram = "Write"; 107 107 }; 108 108 })
+1 -1
pkgs/by-name/sw/swim/package.nix
··· 38 38 [ 39 39 openssl 40 40 ] 41 - ++ lib.optionals stdenv.isDarwin [ 41 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 42 42 darwin.apple_sdk.frameworks.Security 43 43 darwin.apple_sdk.frameworks.SystemConfiguration 44 44 ];
+1 -1
pkgs/by-name/te/termscp/package.nix
··· 50 50 "--skip=cli::remote::test::test_should_make_remote_args_from_two_bookmarks_and_local_dir" 51 51 "--skip=cli::remote::test::test_should_make_remote_args_from_two_remotes_and_local_dir" 52 52 ] 53 - ++ lib.optionals stdenvNoCC.isDarwin [ 53 + ++ lib.optionals stdenvNoCC.hostPlatform.isDarwin [ 54 54 "--skip=system::watcher::test::should_poll_file_removed" 55 55 "--skip=system::watcher::test::should_poll_file_update" 56 56 ];
+1 -1
pkgs/by-name/ve/veryl/package.nix
··· 32 32 [ 33 33 dbus 34 34 ] 35 - ++ lib.optionals stdenv.isDarwin [ 35 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 36 36 darwin.apple_sdk.frameworks.CoreFoundation 37 37 darwin.apple_sdk.frameworks.CoreServices 38 38 darwin.apple_sdk.frameworks.Security
+2 -2
pkgs/by-name/wr/wrangler/package.nix
··· 32 32 llvmPackages.libcxx 33 33 llvmPackages.libunwind 34 34 ] 35 - ++ lib.optionals (stdenv.isLinux) [ 35 + ++ lib.optionals (stdenv.hostPlatform.isLinux) [ 36 36 musl # not used, but requires extra work to remove 37 37 xorg.libX11 # for the clipboardy package 38 38 ]; ··· 43 43 nodejs 44 44 pnpm_9.configHook 45 45 ] 46 - ++ lib.optionals (stdenv.isLinux) [ 46 + ++ lib.optionals (stdenv.hostPlatform.isLinux) [ 47 47 autoPatchelfHook 48 48 ]; 49 49
+1 -1
pkgs/by-name/x4/x4/package.nix
··· 31 31 openssl 32 32 zlib 33 33 ] 34 - ++ lib.optionals stdenv.isDarwin [ 34 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 35 35 darwin.apple_sdk.frameworks.Security 36 36 ]; 37 37
+1 -1
pkgs/by-name/zv/zvbi/package.nix
··· 25 25 validatePkgConfig 26 26 ]; 27 27 28 - buildInputs = lib.optional stdenv.isDarwin libiconv; 28 + buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv; 29 29 30 30 outputs = [ 31 31 "out"
+1 -1
pkgs/development/compilers/elm/packages/node/node-composition.nix
··· 8 8 nodeEnv = import ../../../../node-packages/node-env.nix { 9 9 inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript; 10 10 inherit pkgs nodejs; 11 - libtool = if pkgs.stdenv.isDarwin then pkgs.cctools or pkgs.darwin.cctools else null; 11 + libtool = if pkgs.stdenv.hostPlatform.isDarwin then pkgs.cctools or pkgs.darwin.cctools else null; 12 12 }; 13 13 in 14 14 import ./node-packages.nix {
+1 -1
pkgs/development/compilers/smlnj/default.nix
··· 58 58 patchPhase = '' 59 59 sed -i '/^PATH=/d' config/_arch-n-opsys base/runtime/config/gen-posix-names.sh 60 60 echo SRCARCHIVEURL="file:/$TMP" > config/srcarchiveurl 61 - '' + lib.optionalString stdenv.isDarwin '' 61 + '' + lib.optionalString stdenv.hostPlatform.isDarwin '' 62 62 # Locate standard headers like <unistd.h> 63 63 substituteInPlace base/runtime/config/gen-posix-names.sh \ 64 64 --replace "\$SDK_PATH/usr" "${Libsystem}"
+2 -2
pkgs/development/compilers/swift/swiftpm/default.nix
··· 356 356 swift-driver 357 357 swift-system 358 358 swift-tools-support-core 359 - ] ++ lib.optionals stdenv.isDarwin [ (darwinMinVersionHook "10.15.4") ]; 359 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ (darwinMinVersionHook "10.15.4") ]; 360 360 361 361 cmakeFlags = [ 362 362 "-DUSE_CMAKE_INSTALL=ON" ··· 386 386 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 387 387 CryptoKit 388 388 LocalAuthentication 389 - ] ++ lib.optionals stdenv.isDarwin [ (darwinMinVersionHook "10.15.4") ]; 389 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ (darwinMinVersionHook "10.15.4") ]; 390 390 391 391 configurePhase = generated.configure + '' 392 392 # Functionality provided by Xcode XCTest, but not available in
+1 -1
pkgs/development/interpreters/gauche/boot.nix
··· 38 38 mbedtls 39 39 cacert 40 40 ] 41 - ++ lib.optionals (stdenv.isDarwin) [ 41 + ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ 42 42 darwin.apple_sdk_11_0.frameworks.CoreServices 43 43 ]; 44 44
+1 -1
pkgs/development/libraries/capstone/default.nix
··· 18 18 19 19 cmakeFlags = [ 20 20 (lib.cmakeBool "BUILD_SHARED_LIBS" true) 21 - ] ++ lib.optionals stdenv.isDarwin [ (lib.cmakeBool "CAPSTONE_BUILD_MACOS_THIN" true) ]; 21 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ (lib.cmakeBool "CAPSTONE_BUILD_MACOS_THIN" true) ]; 22 22 23 23 nativeBuildInputs = [ 24 24 cmake
+1 -1
pkgs/development/libraries/librasterlite2/default.nix
··· 71 71 proj 72 72 sqlite 73 73 zstd 74 - ] ++ lib.optional stdenv.isDarwin ApplicationServices; 74 + ] ++ lib.optional stdenv.hostPlatform.isDarwin ApplicationServices; 75 75 76 76 enableParallelBuilding = true; 77 77
+1 -1
pkgs/development/libraries/physics/geant4/default.nix
··· 4 4 , enableQt ? enableQT 5 5 , enableXM ? false 6 6 , libGLX 7 - , enableOpenGLX11 ? !stdenv.isDarwin 7 + , enableOpenGLX11 ? !stdenv.hostPlatform.isDarwin 8 8 , enablePython ? false 9 9 , enableRaytracerX11 ? false 10 10
+1 -1
pkgs/development/libraries/qt-5/modules/qtbase.nix
··· 83 83 [ libinput ] 84 84 ++ lib.optional withGtk3 gtk3 85 85 ) 86 - ++ lib.optional stdenv.isDarwin darwinVersionInputs 86 + ++ lib.optional stdenv.hostPlatform.isDarwin darwinVersionInputs 87 87 ++ lib.optional developerBuild gdb 88 88 ++ lib.optional (cups != null) cups 89 89 ++ lib.optional (mysqlSupport) libmysqlclient
+1 -1
pkgs/development/libraries/qt-5/qtModule.nix
··· 28 28 buildInputs = 29 29 args.buildInputs or [ ] 30 30 # Per https://doc.qt.io/qt-5/macos.html#supported-versions 31 - ++ lib.optionals stdenv.isDarwin [ 31 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 32 32 apple-sdk_13 33 33 (darwinMinVersionHook "10.13") 34 34 ];
+1 -1
pkgs/development/libraries/unicorn/default.nix
··· 24 24 cmake 25 25 pkg-config 26 26 ] 27 - ++ lib.optionals stdenv.isDarwin [ 27 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 28 28 cctools 29 29 ]; 30 30
+1 -1
pkgs/development/lua-modules/overrides.nix
··· 561 561 }); 562 562 563 563 neotest = prev.neotest.overrideAttrs(oa: { 564 - doCheck = stdenv.isLinux; 564 + doCheck = stdenv.hostPlatform.isLinux; 565 565 nativeCheckInputs = oa.nativeCheckInputs ++ [ 566 566 final.nlua final.busted neovim-unwrapped 567 567 ];
+1 -1
pkgs/development/python-modules/arviz/default.nix
··· 101 101 ]; 102 102 103 103 # Tests segfault on darwin 104 - doCheck = !stdenv.isDarwin; 104 + doCheck = !stdenv.hostPlatform.isDarwin; 105 105 106 106 pythonImportsCheck = [ "arviz" ]; 107 107
+1 -1
pkgs/development/python-modules/berkeleydb/default.nix
··· 22 22 23 23 # Every test currently fails with: 24 24 # berkeleydb.db.DBRunRecoveryError: (-30973, 'BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery -- BDB1546 unable to join the environment') 25 - doCheck = !stdenv.isDarwin; 25 + doCheck = !stdenv.hostPlatform.isDarwin; 26 26 27 27 checkPhase = '' 28 28 ${python.interpreter} test.py
+1 -1
pkgs/development/python-modules/botorch/default.nix
··· 59 59 # stuck tests on hydra 60 60 "test_moo_predictive_entropy_search" 61 61 ] 62 - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.isAarch64) [ 62 + ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ 63 63 # Numerical error slightly above threshold 64 64 # AssertionError: Tensor-likes are not close! 65 65 "test_model_list_gpytorch_model"
+1 -1
pkgs/development/python-modules/cleanvision/default.nix
··· 74 74 license = lib.licenses.agpl3Only; 75 75 maintainers = with lib.maintainers; [ GaetanLepage ]; 76 76 # Fatal Python error: Aborted 77 - broken = stdenv.isDarwin; 77 + broken = stdenv.hostPlatform.isDarwin; 78 78 }; 79 79 }
+1 -1
pkgs/development/python-modules/dbf/default.nix
··· 20 20 }; 21 21 22 22 # Workaround for https://github.com/ethanfurman/dbf/issues/48 23 - patches = lib.optional python.stdenv.isDarwin ./darwin.patch; 23 + patches = lib.optional python.stdenv.hostPlatform.isDarwin ./darwin.patch; 24 24 25 25 propagatedBuildInputs = [ aenum ]; 26 26
+1 -1
pkgs/development/python-modules/hf-transfer/default.nix
··· 46 46 [ 47 47 openssl 48 48 ] 49 - ++ lib.optionals stdenv.isDarwin [ 49 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 50 50 darwin.apple_sdk.frameworks.Security 51 51 darwin.apple_sdk.frameworks.SystemConfiguration 52 52 libiconv
+1 -1
pkgs/development/python-modules/jaraco-functools/default.nix
··· 37 37 ]; 38 38 39 39 # test is flaky on darwin 40 - disabledTests = if stdenv.isDarwin then [ "test_function_throttled" ] else null; 40 + disabledTests = if stdenv.hostPlatform.isDarwin then [ "test_function_throttled" ] else null; 41 41 42 42 pythonNamespaces = [ "jaraco" ]; 43 43
+2 -2
pkgs/development/python-modules/mss/default.nix
··· 33 33 hash = "sha256-yWpOxzIk2n2yK8B+88+qGPi4aQDRhy4pETu87wCToh4="; 34 34 }; 35 35 36 - patches = lib.optionals stdenv.isLinux [ 36 + patches = lib.optionals stdenv.hostPlatform.isLinux [ 37 37 (substituteAll { 38 38 src = ./linux-paths.patch; 39 39 x11 = "${xorg.libX11}/lib/libX11.so"; ··· 44 44 45 45 build-system = [ hatchling ]; 46 46 47 - doCheck = stdenv.isLinux; 47 + doCheck = stdenv.hostPlatform.isLinux; 48 48 49 49 nativeCheckInputs = [ 50 50 lsof
+1 -1
pkgs/development/python-modules/pillow/default.nix
··· 117 117 "test_save" 118 118 ]; 119 119 120 - disabledTestPaths = lib.optionals stdenv.isDarwin [ 120 + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ 121 121 # Crashes the interpreter 122 122 "Tests/test_imagetk.py" 123 123 ];
+1 -1
pkgs/development/python-modules/polars/default.nix
··· 93 93 polarsMemoryAllocator 94 94 (pkgs.__splicedPackages.zstd or pkgs.zstd) 95 95 ] 96 - ++ lib.optionals stdenv.isDarwin [ 96 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 97 97 darwin.apple_sdk.frameworks.AppKit 98 98 darwin.apple_sdk.frameworks.IOKit 99 99 darwin.apple_sdk.frameworks.Security
+1 -1
pkgs/development/python-modules/pydantic-extra-types/default.nix
··· 53 53 ]; 54 54 55 55 # PermissionError accessing '/etc/localtime' 56 - disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/test_pendulum_dt.py" ]; 56 + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_pendulum_dt.py" ]; 57 57 58 58 meta = with lib; { 59 59 changelog = "https://github.com/pydantic/pydantic-extra-types/blob/${src.rev}/HISTORY.md";
+2 -2
pkgs/development/python-modules/pyvirtualdisplay/default.nix
··· 30 30 hash = "sha256-CXVbw86263JfsH7KVCX0PyNY078I4A0qm3kqGu3RYVk="; 31 31 }; 32 32 33 - patches = lib.optionals stdenv.isLinux [ 33 + patches = lib.optionals stdenv.hostPlatform.isLinux [ 34 34 (substituteAll { 35 35 src = ./paths.patch; 36 36 xauth = lib.getExe xorg.xauth; ··· 40 40 41 41 build-system = [ setuptools ]; 42 42 43 - doCheck = stdenv.isLinux; 43 + doCheck = stdenv.hostPlatform.isLinux; 44 44 45 45 nativeCheckInputs = [ 46 46 easyprocess
+7 -7
pkgs/development/web/cypress/default.nix
··· 40 40 src = fetchzip { 41 41 url = "https://cdn.cypress.io/desktop/${version}/${platform}/cypress.zip"; 42 42 sha256 = checksum; 43 - stripRoot = !stdenv.isDarwin; 43 + stripRoot = !stdenv.hostPlatform.isDarwin; 44 44 }; 45 45 46 46 # don't remove runtime deps ··· 51 51 unzip 52 52 makeShellWrapper 53 53 ] 54 - ++ lib.optionals stdenv.isLinux [ 54 + ++ lib.optionals stdenv.hostPlatform.isLinux [ 55 55 autoPatchelfHook 56 56 # override doesn't preserve splicing https://github.com/NixOS/nixpkgs/issues/132651 57 57 # Has to use `makeShellWrapper` from `buildPackages` even though `makeShellWrapper` from the inputs is spliced because `propagatedBuildInputs` would pick the wrong one because of a different offset. ··· 59 59 ]; 60 60 61 61 62 - buildInputs = lib.optionals stdenv.isLinux (with xorg; [ 62 + buildInputs = lib.optionals stdenv.hostPlatform.isLinux (with xorg; [ 63 63 libXScrnSaver 64 64 libXdamage 65 65 libXtst ··· 69 69 alsa-lib 70 70 gtk3 71 71 mesa # for libgbm 72 - ]) ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ 72 + ]) ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ 73 73 Cocoa 74 74 CoreServices 75 75 CoreMedia ··· 80 80 ApplicationServices 81 81 ]); 82 82 83 - runtimeDependencies = lib.optional stdenv.isLinux (lib.getLib udev); 83 + runtimeDependencies = lib.optional stdenv.hostPlatform.isLinux (lib.getLib udev); 84 84 85 85 installPhase = '' 86 86 runHook preInstall ··· 93 93 printf '{"version":"%b"}' $version > $out/bin/resources/app/package.json 94 94 # Cypress now looks for binary_state.json in bin 95 95 echo '{"verified": true}' > $out/binary_state.json 96 - ${if stdenv.isDarwin then '' 96 + ${if stdenv.hostPlatform.isDarwin then '' 97 97 ln -s $out/opt/cypress/Cypress.app/Contents/MacOS/Cypress $out/bin/cypress 98 98 '' else '' 99 99 ln -s $out/opt/cypress/Cypress $out/bin/cypress ··· 101 101 runHook postInstall 102 102 ''; 103 103 104 - postFixup = lib.optionalString (!stdenv.isDarwin) '' 104 + postFixup = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' 105 105 # exit with 1 after 25.05 106 106 makeWrapper $out/opt/cypress/Cypress $out/bin/Cypress \ 107 107 --run 'echo "Warning: Use the lowercase cypress executable instead of the capitalized one."'
+1 -1
pkgs/servers/pleroma/default.nix
··· 98 98 vips 99 99 glib.dev 100 100 ] 101 - ++ lib.optionals stdenv.isDarwin [ 101 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 102 102 darwin.apple_sdk.frameworks.Foundation 103 103 darwin.apple_sdk.frameworks.AppKit 104 104 darwin.apple_sdk.frameworks.Kerberos
+1 -1
pkgs/servers/web-apps/jitsi-meet/default.nix
··· 19 19 ''; 20 20 21 21 # Test requires running Jitsi Videobridge and Jicofo which are Linux-only 22 - passthru.tests = lib.optionalAttrs stdenv.isLinux { 22 + passthru.tests = lib.optionalAttrs stdenv.hostPlatform.isLinux { 23 23 single-host-smoke-test = nixosTests.jitsi-meet; 24 24 }; 25 25
+1 -1
pkgs/tools/backup/bacula/default.nix
··· 34 34 "--with-working-dir=/var/lib/bacula" 35 35 "--mandir=\${out}/share/man" 36 36 ] ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "ac_cv_func_setpgrp_void=yes" 37 - ++ lib.optionals stdenv.isDarwin [ 37 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 38 38 # bacula’s `configure` script fails to detect CoreFoundation correctly, 39 39 # but these symbols are available in the nixpkgs CoreFoundation framework. 40 40 "gt_cv_func_CFLocaleCopyCurrent=yes"
+1 -1
pkgs/tools/backup/restic/default.nix
··· 25 25 26 26 nativeCheckInputs = [ python3 ]; 27 27 28 - passthru.tests = lib.optionalAttrs stdenv.isLinux { 28 + passthru.tests = lib.optionalAttrs stdenv.hostPlatform.isLinux { 29 29 restic = nixosTests.restic; 30 30 }; 31 31
+1 -1
pkgs/tools/misc/lighthouse-steamvr/default.nix
··· 23 23 24 24 nativeBuildInputs = [ pkg-config ]; 25 25 26 - buildInputs = [ dbus ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; 26 + buildInputs = [ dbus ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ]; 27 27 28 28 meta = with lib; { 29 29 description = "VR Lighthouse power state management";
+1 -1
pkgs/tools/typesetting/tex/texlive/bin.nix
··· 267 267 '' 268 268 # force XeTeX to use fontconfig instead of Core Text, so that fonts can be made available via FONTCONFIG_FILE, 269 269 # by tricking configure into thinking that the relevant test result is already in the config cache 270 - + lib.optionalString stdenv.isDarwin '' 270 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 271 271 export kpse_cv_have_ApplicationServices=no 272 272 ''; 273 273
+2 -2
pkgs/top-level/all-packages.nix
··· 9511 9511 9512 9512 gst_all_1 = recurseIntoAttrs (callPackage ../development/libraries/gstreamer { 9513 9513 callPackage = newScope gst_all_1; 9514 - stdenv = if stdenv.isDarwin then overrideSDK stdenv "12.3" else stdenv; 9514 + stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "12.3" else stdenv; 9515 9515 inherit (darwin.apple_sdk_12_3.frameworks) AudioToolbox AVFoundation Cocoa CoreFoundation CoreMedia CoreServices CoreVideo DiskArbitration Foundation IOKit MediaToolbox OpenGL Security SystemConfiguration VideoToolbox; 9516 9516 inherit (darwin.apple_sdk_12_3.libs) xpc; 9517 9517 }); ··· 10490 10490 else callPackage ../development/libraries/ncurses { 10491 10491 # ncurses is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv. 10492 10492 stdenv = 10493 - if stdenv.isDarwin then 10493 + if stdenv.hostPlatform.isDarwin then 10494 10494 darwin.bootstrapStdenv 10495 10495 else 10496 10496 stdenv;