Skip to content

Commit

Permalink
treewide: unpin apple-sdk_11 r-s
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 3, 2025
1 parent 51ad908 commit ae433b6
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 99 deletions.
10 changes: 1 addition & 9 deletions pkgs/by-name/rb/rbw/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
openssl,
pkg-config,
installShellFiles,
darwin,
bash,
apple-sdk_11,
# rbw-fzf
withFzf ? false,
fzf,
Expand Down Expand Up @@ -39,13 +37,7 @@ rustPlatform.buildRustPackage rec {
installShellFiles
] ++ lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];

buildInputs =
[ bash ] # for git-credential-rbw
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11 # Needs _NSPasteboardTypeFileURL, can be removed once x86_64-darwin defaults to a higher SDK
darwin.apple_sdk_11_0.frameworks.Security
darwin.apple_sdk_11_0.frameworks.AppKit
];
buildInputs = [ bash ]; # for git-credential-rbw

preConfigure = lib.optionalString stdenv.hostPlatform.isLinux ''
export OPENSSL_INCLUDE_DIR="${openssl.dev}/include"
Expand Down
4 changes: 1 addition & 3 deletions pkgs/by-name/re/rehex/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
lua53Packages,
perlPackages,
gtk3,
apple-sdk_11,
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -50,8 +49,7 @@ stdenv.mkDerivation rec {
perl
TemplateToolkit
])
++ lib.optionals stdenv.hostPlatform.isLinux [ gtk3 ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
++ lib.optionals stdenv.hostPlatform.isLinux [ gtk3 ];

makeFlags = [
"prefix=${placeholder "out"}"
Expand Down
24 changes: 8 additions & 16 deletions pkgs/by-name/re/rerun/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
openssl,
vulkan-loader,
wayland,
apple-sdk_11,

versionCheckHook,

Expand Down Expand Up @@ -63,21 +62,14 @@ rustPlatform.buildRustPackage rec {
rustfmt
];

buildInputs =
[
freetype
glib
gtk3
(lib.getDev openssl)
libxkbcommon
vulkan-loader
]
++ lib.optionals stdenv.hostPlatform.isLinux [ (lib.getLib wayland) ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Undefined symbols for architecture x86_64: "_NSAccessibilityTabButtonSubrole"
# ld: symbol(s) not found for architecture x86_64
apple-sdk_11
];
buildInputs = [
freetype
glib
gtk3
(lib.getDev openssl)
libxkbcommon
vulkan-loader
] ++ lib.optionals stdenv.hostPlatform.isLinux [ (lib.getLib wayland) ];

addDlopenRunpaths = map (p: "${lib.getLib p}/lib") (
lib.optionals stdenv.hostPlatform.isLinux [
Expand Down
6 changes: 0 additions & 6 deletions pkgs/by-name/re/rewatch/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
rustPlatform,
fetchFromGitHub,
nix-update-script,
apple-sdk_11,
stdenv,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -20,10 +18,6 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-cZTA50gm7o+vBaRNjpZI0LQkXaHIukVTBXoYMUubZgw=";

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

doCheck = true;

passthru.updateScript = nix-update-script { };
Expand Down
3 changes: 0 additions & 3 deletions pkgs/by-name/ri/ride/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
copyDesktopItems,
makeDesktopItem,
electron,
apple-sdk_11,
}:

buildNpmPackage rec {
Expand Down Expand Up @@ -70,8 +69,6 @@ buildNpmPackage rec {
makeWrapper
] ++ lib.optionals stdenv.hostPlatform.isLinux [ copyDesktopItems ];

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

env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";

# our patch adds the platform detecting build option
Expand Down
2 changes: 0 additions & 2 deletions pkgs/by-name/ri/rio/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
libGL,
vulkan-loader,
libxkbcommon,
apple-sdk_11,

withX11 ? !stdenv.hostPlatform.isDarwin,
libX11,
Expand Down Expand Up @@ -81,7 +80,6 @@ rustPlatform.buildRustPackage rec {
rlinkLibs
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.libutil
apple-sdk_11 # Needs _NSPasteboardTypeFileURL, can be removed once x86_64-darwin defaults to a higher SDK
];

outputs = [
Expand Down
5 changes: 1 addition & 4 deletions pkgs/by-name/ri/ripgrep/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
rustPlatform,
installShellFiles,
pkg-config,
apple-sdk_11,
withPCRE2 ? true,
pcre2,
}:
Expand All @@ -29,9 +28,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-b+iA8iTYWlczBpNq9eyHrWG8LMU4WPBzaU6pQRht+yE=";

nativeBuildInputs = [ installShellFiles ] ++ lib.optional withPCRE2 pkg-config;
buildInputs =
lib.optional withPCRE2 pcre2
++ lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
buildInputs = lib.optional withPCRE2 pcre2;

buildFeatures = lib.optional withPCRE2 "pcre2";

Expand Down
13 changes: 3 additions & 10 deletions pkgs/by-name/ru/rucola/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
pkg-config,
oniguruma,
stdenv,
apple-sdk_11,
darwinMinVersionHook,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -26,14 +24,9 @@ rustPlatform.buildRustPackage rec {
pkg-config
];

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

env = {
RUSTONIG_SYSTEM_LIBONIG = true;
Expand Down
4 changes: 0 additions & 4 deletions pkgs/by-name/sc/scopehal-apps/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
spirv-tools,
ffts,
moltenvk,
apple-sdk_11,
darwinMinVersionHook,
llvmPackages,
}:

Expand Down Expand Up @@ -73,8 +71,6 @@ stdenv.mkDerivation {
]
++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
(darwinMinVersionHook "10.15")
moltenvk
];

Expand Down
4 changes: 1 addition & 3 deletions pkgs/by-name/sh/shipwright/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
zenity,
makeWrapper,
darwin,
apple-sdk_11,
libicns,
}:
stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -94,8 +93,7 @@ stdenv.mkDerivation (finalAttrs: {
libXext
libpulseaudio
zenity
]
++ lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
];

cmakeFlags = [
(lib.cmakeBool "NON_PORTABLE" true)
Expand Down
6 changes: 0 additions & 6 deletions pkgs/by-name/si/signalbackup-tools/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
cmake,
pkg-config,

apple-sdk_11,
darwinMinVersionHook,
dbus,
openssl,
sqlite,
Expand Down Expand Up @@ -35,10 +33,6 @@ stdenv.mkDerivation rec {
sqlite
] ++ lib.optionals stdenv.hostPlatform.isLinux [
dbus
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
# Needed for `utimensat` on `x86_64-darwin`
apple-sdk_11
(darwinMinVersionHook "11.3")
];

installPhase = ''
Expand Down
7 changes: 0 additions & 7 deletions pkgs/by-name/sk/skhd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
apple-sdk_11,
darwinMinVersionHook,
nix-update-script,
versionCheckHook,
}:
Expand All @@ -18,11 +16,6 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-fnkWws/g4BdHKDRhqoCpdPFUavOHdk8R7h7H1dAdAYI=";
};

buildInputs = [
apple-sdk_11
(darwinMinVersionHook "10.13")
];

makeFlags = [ "BUILD_PATH=$(out)/bin" ];

env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
Expand Down
5 changes: 1 addition & 4 deletions pkgs/by-name/sk/skia/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
, xcbuild
, cctools
, zlib
, apple-sdk_11
, fixDarwinDylibNames

, enableVulkan ? !stdenv.hostPlatform.isDarwin
Expand Down Expand Up @@ -70,9 +69,7 @@ stdenv.mkDerivation (finalAttrs: {
] ++ lib.optionals enableVulkan [
vulkan-headers
vulkan-memory-allocator
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11 # can be removed once x86_64-darwin defaults to a newer SDK
];
] ;

gnFlags = let
cpu = {
Expand Down
13 changes: 4 additions & 9 deletions pkgs/by-name/sp/spicy-parser-generator/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
bison,
flex,
zlib,
apple-sdk_11,
}:

stdenv.mkDerivation rec {
Expand All @@ -33,14 +32,10 @@ stdenv.mkDerivation rec {
python3
];

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

postPatch = ''
patchShebangs scripts tests/scripts
Expand Down
4 changes: 0 additions & 4 deletions pkgs/by-name/sp/spotify-player/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
dbus,
fontconfig,
libsixel,
apple-sdk_11,

# build options
withStreaming ? true,
Expand Down Expand Up @@ -75,9 +74,6 @@ rustPlatform.buildRustPackage rec {
dbus
fontconfig
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11 # can be removed once x86_64-darwin defaults to a newer SDK
]
++ lib.optionals withSixel [ libsixel ]
++ lib.optionals (withAudioBackend == "alsa") [ alsa-lib ]
++ lib.optionals (withAudioBackend == "pulseaudio") [ libpulseaudio ]
Expand Down
9 changes: 0 additions & 9 deletions pkgs/by-name/st/stockfish/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
fetchurl,
fetchFromGitHub,
apple-sdk,
apple-sdk_11,
darwinMinVersionHook,
}:

let
Expand Down Expand Up @@ -64,13 +62,6 @@ stdenv.mkDerivation rec {
];
buildFlags = [ "build" ];

buildInputs =
lib.optionals (stdenv.hostPlatform.isDarwin && lib.versionOlder apple-sdk.version "11")
[
apple-sdk_11
(darwinMinVersionHook "10.15")
];

enableParallelBuilding = true;

meta = with lib; {
Expand Down

0 comments on commit ae433b6

Please sign in to comment.