Skip to content

Commit

Permalink
treewide: unpin apple-sdk_11
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 3, 2025
1 parent 771c7e6 commit 36b135c
Show file tree
Hide file tree
Showing 107 changed files with 308 additions and 751 deletions.
4 changes: 0 additions & 4 deletions pkgs/applications/audio/musescore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
qtnetworkauth,
qttools,
nixosTests,
apple-sdk_11,
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -127,9 +126,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
qtwayland
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
];

postInstall =
Expand Down
2 changes: 0 additions & 2 deletions pkgs/applications/editors/lapce/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
wayland,
gobject-introspection,
xorg,
apple-sdk_11,
}:
let
rpathLibs = lib.optionals stdenv.hostPlatform.isLinux [
Expand Down Expand Up @@ -94,7 +93,6 @@ rustPlatform.buildRustPackage rec {
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libobjc
apple-sdk_11
];

postInstall =
Expand Down
4 changes: 1 addition & 3 deletions pkgs/applications/emulators/86box/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
stdenv,
apple-sdk_11,
lib,
fetchFromGitHub,
cmake,
Expand Down Expand Up @@ -90,8 +89,7 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
++ lib.optional enableWayland wayland
++ lib.optional enableVncRenderer libvncserver
++ lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
++ lib.optional enableVncRenderer libvncserver;

cmakeFlags =
lib.optional stdenv.hostPlatform.isDarwin "-DCMAKE_MACOSX_BUNDLE=OFF"
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/sync/lsyncd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
docbook_xml_dtd_45,
docbook_xsl,
libxslt,
apple-sdk_11,
apple-sdk,
}:

let
xnu = apple-sdk_11.sourceRelease "xnu";
xnu = apple-sdk.sourceRelease "xnu";
in
stdenv.mkDerivation rec {
pname = "lsyncd";
Expand Down Expand Up @@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
docbook_xml_dtd_45
docbook_xsl
libxslt
] ++ lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
];

meta = with lib; {
homepage = "https://github.com/axkibe/lsyncd";
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/version-management/fnc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
zlib,
ncurses,
libiconv,
apple-sdk_11,
darwinMinVersionHook,
}:

stdenv.mkDerivation (finalAttrs: {
Expand All @@ -22,8 +20,6 @@ stdenv.mkDerivation (finalAttrs: {
libiconv
ncurses
zlib
apple-sdk_11
(darwinMinVersionHook "11.0")
];

makeFlags = [ "PREFIX=$(out)" ];
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/version-management/gitoxide/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
cmake,
pkg-config,
stdenv,
apple-sdk_11,
curl,
openssl,
buildPackages,
Expand Down Expand Up @@ -36,7 +35,7 @@ rustPlatform.buildRustPackage rec {
installShellFiles
];

buildInputs = [ curl ] ++ (if stdenv.hostPlatform.isDarwin then [ apple-sdk_11 ] else [ openssl ]);
buildInputs = [ curl ] ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ];

preFixup = lib.optionalString canRunCmd ''
installShellCompletion --cmd gix \
Expand Down
9 changes: 0 additions & 9 deletions pkgs/build-support/build-graalvm-native-image/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
lib,
stdenv,
apple-sdk_11,
darwinMinVersionHook,
glibcLocales,
# The GraalVM derivation to use
graalvmDrv,
Expand Down Expand Up @@ -35,8 +33,6 @@ let
extraArgs = builtins.removeAttrs args [
"lib"
"stdenv"
"apple-sdk_11"
"darwinMinVersionHook"
"glibcLocales"
"jar"
"dontUnpack"
Expand All @@ -60,11 +56,6 @@ stdenv.mkDerivation (
removeReferencesTo
];

buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin) [
apple-sdk_11
(darwinMinVersionHook "11.0")
];

nativeImageBuildArgs = nativeImageBuildArgs ++ extraNativeImageBuildArgs ++ [ graalvmXmx ];

buildPhase =
Expand Down
10 changes: 3 additions & 7 deletions pkgs/by-name/ag/age-plugin-yubikey/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
pkg-config,
openssl,
pcsclite,
apple-sdk_11,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -31,12 +30,9 @@ rustPlatform.buildRustPackage rec {
pkg-config
];

buildInputs =
[
openssl
]
++ lib.optionals stdenv.hostPlatform.isLinux [ pcsclite ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.isLinux [ pcsclite ];

meta = with lib; {
description = "YubiKey plugin for age";
Expand Down
7 changes: 1 addition & 6 deletions pkgs/by-name/al/alacritty/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
wayland,
xdg-utils,

apple-sdk_11,
}:
let
rpathLibs =
Expand Down Expand Up @@ -65,11 +64,7 @@ rustPlatform.buildRustPackage rec {
scdoc
];

buildInputs =
rpathLibs
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
];
buildInputs = rpathLibs;

outputs = [
"out"
Expand Down
29 changes: 9 additions & 20 deletions pkgs/by-name/an/anvil-editor/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
buildGoModule,
fetchzip,
pkg-config,
libicns,
copyDesktopItems,
makeDesktopItem,
desktopToDarwinBundle,
apple-sdk_11,
darwinMinVersionHook,
wayland,
libxkbcommon,
vulkan-headers,
Expand Down Expand Up @@ -44,23 +41,15 @@ buildGoModule rec {
desktopToDarwinBundle
];

buildInputs =
if stdenv.hostPlatform.isDarwin then
[
apple-sdk_11
# metal dependencies require 10.13 or newer
(darwinMinVersionHook "10.13")
]
else
[
wayland
libxkbcommon
vulkan-headers
libGL
xorg.libX11
xorg.libXcursor
xorg.libXfixes
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
wayland
libxkbcommon
vulkan-headers
libGL
xorg.libX11
xorg.libXcursor
xorg.libXfixes
];

# Got different result in utf8 char length?
checkFlags = [ "-skip=^TestClearAfter$" ];
Expand Down
4 changes: 0 additions & 4 deletions pkgs/by-name/ar/ares/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
lib,
SDL2,
alsa-lib,
apple-sdk_11,
autoPatchelfHook,
fetchFromGitHub,
gtk3,
Expand Down Expand Up @@ -67,9 +66,6 @@ stdenv.mkDerivation (finalAttrs: {
libpulseaudio
openal
udev
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
];

appendRunpaths = [ (lib.makeLibraryPath [ vulkan-loader ]) ];
Expand Down
2 changes: 0 additions & 2 deletions pkgs/by-name/au/audacity/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
wavpack,
wxGTK32,
gtk3,
apple-sdk_11,
libpng,
libjpeg,
}:
Expand Down Expand Up @@ -144,7 +143,6 @@ stdenv.mkDerivation (finalAttrs: {
util-linux
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
libpng
libjpeg
];
Expand Down
3 changes: 1 addition & 2 deletions pkgs/by-name/au/augustus/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
SDL2_mixer,
libpng,
darwin,
apple-sdk_11,
libicns,
imagemagick,
}:
Expand Down Expand Up @@ -37,7 +36,7 @@ stdenv.mkDerivation rec {
SDL2
SDL2_mixer
libpng
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
];

installPhase = lib.optionalString stdenv.hostPlatform.isDarwin ''
runHook preInstall
Expand Down
6 changes: 0 additions & 6 deletions pkgs/by-name/bo/bottom/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
fetchFromGitHub,
autoAddDriverRunpath,
installShellFiles,
stdenv,
apple-sdk_11,
versionCheckHook,
nix-update-script,
}:
Expand All @@ -28,10 +26,6 @@ rustPlatform.buildRustPackage rec {
installShellFiles
];

buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
];

postInstall = ''
installManPage target/tmp/bottom/manpage/btm.1
installShellCompletion \
Expand Down
13 changes: 3 additions & 10 deletions pkgs/by-name/br/bruno-cli/package.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
lib,
stdenv,
buildNpmPackage,
bruno,
pkg-config,
pango,
apple-sdk_11,
testers,
bruno-cli,
}:
Expand All @@ -28,14 +26,9 @@ buildNpmPackage {
pkg-config
];

buildInputs =
[
pango
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# fix for: https://github.com/NixOS/nixpkgs/issues/272156
apple-sdk_11
];
buildInputs = [
pango
];

ELECTRON_SKIP_BINARY_DOWNLOAD = 1;

Expand Down
16 changes: 5 additions & 11 deletions pkgs/by-name/br/bruno/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
cairo,
pango,
npm-lockfile-fix,
apple-sdk_11,
}:

buildNpmPackage rec {
Expand Down Expand Up @@ -43,16 +42,11 @@ buildNpmPackage rec {
copyDesktopItems
];

buildInputs =
[
pixman
cairo
pango
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# fix for: https://github.com/NixOS/nixpkgs/issues/272156
apple-sdk_11
];
buildInputs = [
pixman
cairo
pango
];

desktopItems = [
(makeDesktopItem {
Expand Down
5 changes: 1 addition & 4 deletions pkgs/by-name/bs/bsnes-hd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
lib,
SDL2,
alsa-lib,
apple-sdk_11,
fetchFromGitHub,
fetchpatch,
gtk3,
gtksourceview3,
libX11,
Expand Down Expand Up @@ -69,8 +67,7 @@ stdenv.mkDerivation {
alsa-lib
openal
libpulseaudio
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
];

makeFlags =
[
Expand Down
3 changes: 0 additions & 3 deletions pkgs/by-name/ca/cargo-deadlinks/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
stdenv,
rustPlatform,
fetchFromGitHub,
apple-sdk_11,
}:

rustPlatform.buildRustPackage rec {
Expand Down Expand Up @@ -31,8 +30,6 @@ rustPlatform.buildRustPackage rec {
# assumes the target is x86_64-unknown-linux-gnu
"--skip simple_project::it_checks_okay_project_correctly";

buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;

meta = with lib; {
description = "Cargo subcommand to check rust documentation for broken links";
homepage = "https://github.com/deadlinks/cargo-deadlinks";
Expand Down
Loading

0 comments on commit 36b135c

Please sign in to comment.