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