Skip to content

Commit

Permalink
treewide: replace darwin.apple_sdk_11_0.stdenv with stdenv on darwin (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Jan 3, 2025
2 parents a32a06f + 2b96961 commit 4491046
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 58 deletions.
3 changes: 2 additions & 1 deletion pkgs/by-name/ne/nextcloud-client/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, gitUpdater
, fetchFromGitHub
, qt6Packages
, stdenv
, cmake
, extra-cmake-modules
, inotify-tools
Expand All @@ -18,7 +19,7 @@
, libsysprof-capture
}:

qt6Packages.stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "nextcloud-client";
version = "3.15.2";

Expand Down
5 changes: 1 addition & 4 deletions pkgs/by-name/op/openimagedenoise/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
xcodebuild,
}:

let
stdenv' = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
in
stdenv'.mkDerivation (finalAttrs: {
stdenv.mkDerivation (finalAttrs: {
pname = "openimagedenoise";
version = "2.2.2";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/qo/qownnotes/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let
appname = "QOwnNotes";
version = "24.12.7";
in
qt6Packages.stdenv.mkDerivation {
stdenv.mkDerivation {
inherit pname version;

src = fetchurl {
Expand Down
4 changes: 1 addition & 3 deletions pkgs/development/libraries/mongocxx/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib
, pkgs
, stdenv
, fetchFromGitHub
, mongoc
, openssl
Expand All @@ -10,8 +10,6 @@
, darwin
}:

let stdenv = if pkgs.stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else pkgs.stdenv; in

stdenv.mkDerivation (finalAttrs: {
pname = "mongocxx";
version = "4.0.0";
Expand Down
5 changes: 1 addition & 4 deletions pkgs/development/libraries/qscintilla/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
darwin,
}:

let
stdenv' = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
in
stdenv'.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "qscintilla-qt5";
version = "2.13.2";

Expand Down
3 changes: 1 addition & 2 deletions pkgs/development/python-modules/openusd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ buildPythonPackage rec {
hash = "sha256-slBJleeDi0mCVThty4NUX4M9vaCLV+E8rnp1Ab77TmE=";
};

stdenv =
if python.stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else python.stdenv;
stdenv = python.stdenv;

outputs = [ "out" ] ++ lib.optional withDocs "doc";

Expand Down
3 changes: 1 addition & 2 deletions pkgs/development/python-modules/python-mapnik/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ buildPythonPackage rec {
./python-mapnik_std_optional.patch
];

stdenv =
if python.stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else python.stdenv;
stdenv = python.stdenv;

build-system = [ setuptools ];

Expand Down
47 changes: 7 additions & 40 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3668,9 +3668,7 @@ with pkgs;

haste-client = callPackage ../tools/misc/haste-client { };

hal-hardware-analyzer = libsForQt5.callPackage ../applications/science/electronics/hal-hardware-analyzer {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};
hal-hardware-analyzer = libsForQt5.callPackage ../applications/science/electronics/hal-hardware-analyzer { };

halide = callPackage ../development/compilers/halide {
llvmPackages = llvmPackages_18;
Expand Down Expand Up @@ -4672,9 +4670,7 @@ with pkgs;

padthv1 = libsForQt5.callPackage ../applications/audio/padthv1 { };

pageedit = libsForQt5.callPackage ../applications/office/PageEdit {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};
pageedit = libsForQt5.callPackage ../applications/office/PageEdit { };

pagefind = libsForQt5.callPackage ../applications/misc/pagefind { };

Expand Down Expand Up @@ -4858,7 +4854,6 @@ with pkgs;

proxmark3 = libsForQt5.callPackage ../tools/security/proxmark3/default.nix {
inherit (darwin.apple_sdk_11_0.frameworks) Foundation AppKit;
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};

pws = callPackage ../tools/misc/pws { };
Expand Down Expand Up @@ -5259,7 +5254,6 @@ with pkgs;
};

texmacs = libsForQt5.callPackage ../applications/editors/texmacs {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
extraFonts = true;
};

Expand Down Expand Up @@ -9052,10 +9046,6 @@ with pkgs;

ghcid = haskellPackages.ghcid.bin;

gr-framework = callPackage ../by-name/gr/gr-framework/package.nix {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};

graphia = qt6Packages.callPackage ../applications/science/misc/graphia { };

libgit2 = callPackage ../development/libraries/libgit2 {
Expand Down Expand Up @@ -10364,7 +10354,6 @@ with pkgs;
};

pcl = libsForQt5.callPackage ../development/libraries/pcl {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
inherit (darwin.apple_sdk_11_0.frameworks) Cocoa AGL OpenGL;
};

Expand Down Expand Up @@ -10511,7 +10500,7 @@ with pkgs;

qt6Packages = recurseIntoAttrs (import ./qt6-packages.nix {
inherit lib __splicedPackages makeScopeWithSplicing' generateSplicesForMkScope pkgsHostTarget kdePackages;
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
inherit stdenv;
});

quill = callPackage ../tools/security/quill {
Expand Down Expand Up @@ -13119,22 +13108,8 @@ with pkgs;

av-98 = callPackage ../applications/networking/browsers/av-98 { };

bambootracker = libsForQt5.callPackage ../applications/audio/bambootracker {
stdenv = if stdenv.hostPlatform.isDarwin then
darwin.apple_sdk_11_0.stdenv
else
stdenv;
};
bambootracker-qt6 = qt6Packages.callPackage ../applications/audio/bambootracker {
stdenv = if stdenv.hostPlatform.isDarwin then
darwin.apple_sdk_11_0.stdenv
else
stdenv;
};

ptcollab = callPackage ../by-name/pt/ptcollab/package.nix {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};
bambootracker = libsForQt5.callPackage ../applications/audio/bambootracker { };
bambootracker-qt6 = qt6Packages.callPackage ../applications/audio/bambootracker { };

schismtracker = callPackage ../applications/audio/schismtracker {
inherit (darwin.apple_sdk.frameworks) Cocoa;
Expand Down Expand Up @@ -13509,7 +13484,6 @@ with pkgs;

keepassxc = libsForQt5.callPackage ../applications/misc/keepassxc {
inherit (darwin.apple_sdk_11_0.frameworks) LocalAuthentication;
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};

evolution-data-server-gtk4 = evolution-data-server.override { withGtk3 = false; withGtk4 = true; };
Expand Down Expand Up @@ -15127,9 +15101,7 @@ with pkgs;

qtpass = libsForQt5.callPackage ../applications/misc/qtpass { };

quassel = libsForQt5.callPackage ../applications/networking/irc/quassel {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};
quassel = libsForQt5.callPackage ../applications/networking/irc/quassel { };

quasselClient = quassel.override {
monolithic = false;
Expand Down Expand Up @@ -15474,7 +15446,6 @@ with pkgs;
};

synergy = libsForQt5.callPackage ../applications/misc/synergy {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
inherit (darwin.apple_sdk_11_0.frameworks) ApplicationServices Carbon Cocoa CoreServices ScreenSaver UserNotifications;
};

Expand Down Expand Up @@ -16014,9 +15985,7 @@ with pkgs;
lua = lua5_3;
};

xpdf = libsForQt5.callPackage ../applications/misc/xpdf {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
};
xpdf = libsForQt5.callPackage ../applications/misc/xpdf { };

xmobar = haskellPackages.xmobar.bin;

Expand Down Expand Up @@ -16135,7 +16104,6 @@ with pkgs;
};

bitcoin = libsForQt5.callPackage ../applications/blockchains/bitcoin {
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
withGui = true;
inherit (darwin) autoSignDarwinBinariesHook;
};
Expand Down Expand Up @@ -16647,7 +16615,6 @@ with pkgs;

mudlet = libsForQt5.callPackage ../games/mudlet {
lua = lua5_1;
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
inherit (darwin.apple_sdk_11_0.frameworks) AppKit;
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/qt6-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ makeScopeWithSplicing' {
inherit (self) callPackage;
noExtraAttrs = set: lib.attrsets.removeAttrs set [ "extend" "override" "overrideScope" "overrideDerivation" ];
in (noExtraAttrs qt6) // {
inherit stdenv;
stdenv = lib.warn "qt6Packages.stdenv is deprecated. Use stdenv instead." stdenv;

# LIBRARIES
accounts-qt = callPackage ../development/libraries/accounts-qt { };
Expand Down

0 comments on commit 4491046

Please sign in to comment.