Skip to content

Commit 34d8628

Browse files
authored
various: remove code for macOS < 11 (NixOS#370995)
2 parents 3f49e3d + d3eee9a commit 34d8628

File tree

24 files changed

+10
-174
lines changed

24 files changed

+10
-174
lines changed

pkgs/applications/blockchains/bitcoin/default.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ stdenv.mkDerivation rec {
9595
install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png
9696
'';
9797

98-
preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
99-
export MACOSX_DEPLOYMENT_TARGET=10.13
100-
'';
101-
10298
configureFlags =
10399
[
104100
"--with-boost-libdir=${boost.out}/lib"

pkgs/applications/blockchains/groestlcoin/default.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ stdenv.mkDerivation rec {
9292
install -Dm644 share/pixmaps/groestlcoin256.png $out/share/pixmaps/groestlcoin.png
9393
'';
9494

95-
preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
96-
export MACOSX_DEPLOYMENT_TARGET=10.13
97-
'';
98-
9995
configureFlags =
10096
[
10197
"--with-boost-libdir=${boost.out}/lib"

pkgs/applications/networking/ftp/filezilla/default.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ stdenv.mkDerivation rec {
5252
xdg-utils
5353
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices Security ];
5454

55-
preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin) ''
56-
export MACOSX_DEPLOYMENT_TARGET=11.0
57-
'';
58-
5955
enableParallelBuilding = true;
6056

6157
meta = with lib; {

pkgs/applications/office/mmex/default.nix

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,10 @@ stdenv.mkDerivation rec {
3939
})
4040
];
4141

42-
postPatch =
43-
lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
44-
substituteInPlace src/platfdep_mac.mm \
45-
--replace "appearance.name == NSAppearanceNameDarkAqua" "NO"
46-
''
47-
+ lib.optionalString (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isx86_64) ''
48-
substituteInPlace 3rd/CMakeLists.txt \
49-
--replace "-msse4.2 -maes" ""
50-
'';
42+
postPatch = lib.optionalString (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isx86_64) ''
43+
substituteInPlace 3rd/CMakeLists.txt \
44+
--replace "-msse4.2 -maes" ""
45+
'';
5146

5247
nativeBuildInputs =
5348
[

pkgs/applications/radio/freedv/default.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ stdenv.mkDerivation rec {
7474
"-DUSE_PULSEAUDIO:BOOL=${if pulseSupport then "TRUE" else "FALSE"}"
7575
];
7676

77-
env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
78-
"-DAPPLE_OLD_XCODE"
79-
]);
80-
8177
doCheck = true;
8278

8379
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''

pkgs/applications/terminal-emulators/kitty/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ buildPythonApplication rec {
146146
mkdir ./fonts/
147147
cp "${nerd-fonts.symbols-only}/share/fonts/truetype/NerdFonts/Symbols/SymbolsNerdFontMono-Regular.ttf" ./fonts/
148148
149-
${ lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) "export MACOSX_DEPLOYMENT_TARGET=11" }
150149
${if stdenv.hostPlatform.isDarwin then ''
151150
${python.pythonOnBuildForHost.interpreter} setup.py build ${darwinOptions}
152151
make docs

pkgs/by-name/da/dark-mode-notify/package.nix

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
swift,
66
swiftpm,
77
swiftPackages,
8-
darwin,
98
}:
109

1110
# Use the same stdenv, including clang, as Swift itself
@@ -26,18 +25,12 @@ swiftPackages.stdenv.mkDerivation (final: {
2625
swiftpm
2726
];
2827

29-
buildInputs = with darwin.apple_sdk.frameworks; [
30-
Foundation
31-
Cocoa
32-
];
33-
3428
makeFlags = [ "prefix=$(out)" ];
3529

3630
meta = {
3731
description = "Run a script whenever dark mode changes in macOS";
3832
homepage = "https://github.com/bouk/dark-mode-notify";
39-
# Doesn't build on x86_64 because of some CoreGraphics issue, even with SDK 11.0
40-
platforms = [ "aarch64-darwin" ];
33+
platforms = lib.platforms.darwin;
4134
license = lib.licenses.mit;
4235
maintainers = with lib.maintainers; [ YorikSar ];
4336
mainProgram = "dark-mode-notify";

pkgs/by-name/fl/fluent-bit/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
4949
"-DFLB_METRICS=ON"
5050
"-DFLB_HTTP_SERVER=ON"
5151
"-DFLB_OUT_PGSQL=ON"
52-
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13" ];
52+
];
5353

5454
env.NIX_CFLAGS_COMPILE = toString (
5555
# Used by the embedded luajit, but is not predefined on older mac SDKs.

pkgs/by-name/gd/gdlv/package.nix

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ buildGoModule rec {
2222
vendorHash = null;
2323
subPackages = ".";
2424

25-
preBuild =
26-
lib.optionalString
27-
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0")
28-
''
29-
export MACOSX_DEPLOYMENT_TARGET=10.15
30-
'';
31-
3225
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
3326
AppKit
3427
CoreGraphics

pkgs/by-name/ju/junkie/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
3131
];
3232

3333
# IP_DONTFRAG is defined on macOS from Big Sur
34-
postPatch = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") ''
34+
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
3535
sed -i '10i#undef IP_DONTFRAG' include/junkie/proto/ip.h
3636
'';
3737

0 commit comments

Comments
 (0)