Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: remove inherit (darwin)s from all-packages.nix #205703

Merged
merged 7 commits into from
Dec 13, 2022
9 changes: 2 additions & 7 deletions pkgs/applications/video/aegisub/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@
, wxGTK
, zlib

, CoreText
, CoreFoundation
, AppKit
, Carbon
, IOKit
, Cocoa

, spellcheckSupport ? true
, hunspell ? null

Expand All @@ -51,6 +44,7 @@
, portaudio ? null

, useBundledLuaJIT ? false
, darwin
}:

assert spellcheckSupport -> (hunspell != null);
Expand All @@ -62,6 +56,7 @@ assert portaudioSupport -> (portaudio != null);
let
luajit52 = luajit.override { enable52Compat = true; };
inherit (lib) optional;
inherit (darwin.apple_sdk.frameworks) CoreText CoreFoundation AppKit Carbon IOKit Cocoa;
in
stdenv.mkDerivation rec {
pname = "aegisub";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/video/mpv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
, lua
, libuchardet
, libiconv
, CoreFoundation, Cocoa, CoreAudio, MediaPlayer
, xcbuild

, waylandSupport ? stdenv.isLinux
Expand Down Expand Up @@ -75,11 +74,12 @@
, xineramaSupport ? stdenv.isLinux, libXinerama
, xvSupport ? stdenv.isLinux, libXv
, zimgSupport ? true, zimg
, darwin
}:

let
inherit (darwin.apple_sdk.frameworks) CoreFoundation Cocoa CoreAudio MediaPlayer;
luaEnv = lua.withPackages (ps: with ps; [ luasocket ]);

in stdenv.mkDerivation rec {
pname = "mpv";
version = "0.35.0";
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/libraries/ftgl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
, doxygen
, freeglut
, freetype
, GLUT
, libGL
, libGLU
, OpenGL
, pkg-config
, darwin
}:

let
inherit (darwin.apple_sdk.frameworks) OpenGL GLUT;
in
stdenv.mkDerivation rec {
pname = "ftgl";
version = "2.4.0";
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/libraries/wxSVG/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
, pango
, pkg-config
, wxGTK
# darwin deps
, Cocoa
, darwin
}:

let
inherit (darwin.apple_sdk.frameworks) Cocoa;
in
stdenv.mkDerivation rec {
pname = "wxSVG";
version = "1.5.24";
Expand Down
13 changes: 8 additions & 5 deletions pkgs/development/tools/build-managers/cmake/default.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
{ lib
, stdenv
, fetchurl
, buildPackages
, bzip2
, curlMinimal
, expat
, fetchurl
, libarchive
, libuv
, ncurses
, openssl
, pkg-config
, qtbase
, ps
, rhash
, sphinx
, texinfo
, wrapQtAppsHook
, xz
, zlib
, SystemConfiguration
, ps
, isBootstrap ? false
, useOpenSSL ? !isBootstrap
, useSharedLibraries ? (!isBootstrap && !stdenv.isCygwin)
, uiToolkits ? [] # can contain "ncurses" and/or "qt5"
, buildDocs ? !(isBootstrap || (uiToolkits == []))
, darwin
, libsForQt5
}:

let
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
inherit (libsForQt5) qtbase wrapQtAppsHook;
cursesUI = lib.elem "ncurses" uiToolkits;
qt5UI = lib.elem "qt5" uiToolkits;
in
# Accepts only "ncurses" and "qt5" as possible uiToolkits
assert lib.subtractLists [ "ncurses" "qt5" ] uiToolkits == [];
# Minimal, bootstrap cmake does not have toolkits
assert isBootstrap -> (uiToolkits == []);
stdenv.mkDerivation rec {
pname = "cmake"
+ lib.optionalString isBootstrap "-boot"
Expand Down
12 changes: 11 additions & 1 deletion pkgs/misc/sound-of-sorting/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, SDL2, wxGTK32, Cocoa }:
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, SDL2
, wxGTK32
, darwin
}:

let
inherit (darwin.apple_sdk.frameworks) Cocoa;
in
stdenv.mkDerivation {
pname = "sound-of-sorting";
version = "unstable-2022-10-12";
Expand Down
6 changes: 5 additions & 1 deletion pkgs/tools/system/plan9port/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{ lib, stdenv, fetchFromGitHub
, fontconfig, freetype, libX11, libXext, libXt, xorgproto
, Carbon, Cocoa, IOKit, Metal, QuartzCore, DarwinTools
, perl # For building web manuals
, which, ed
, darwin
}:

let
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa IOKit Metal QuartzCore;
inherit (darwin) DarwinTools;
in
stdenv.mkDerivation rec {
pname = "plan9port";
version = "2022-09-12";
Expand Down
27 changes: 5 additions & 22 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,6 @@ with pkgs;

aegisub = callPackage ../applications/video/aegisub ({
wxGTK = wxGTK32;
inherit (darwin.apple_sdk.frameworks) CoreText CoreFoundation AppKit Carbon IOKit Cocoa;
} // (config.aegisub or {}));

aerc = callPackage ../applications/networking/mailreaders/aerc { };
Expand Down Expand Up @@ -7241,9 +7240,7 @@ with pkgs;
frostwire = callPackage ../applications/networking/p2p/frostwire { };
frostwire-bin = callPackage ../applications/networking/p2p/frostwire/frostwire-bin.nix { };

ftgl = callPackage ../development/libraries/ftgl {
inherit (darwin.apple_sdk.frameworks) OpenGL GLUT;
};
ftgl = callPackage ../development/libraries/ftgl { };

ftop = callPackage ../os-specific/linux/ftop { };

Expand Down Expand Up @@ -10625,10 +10622,7 @@ with pkgs;

plantuml-server = callPackage ../tools/misc/plantuml-server { };

plan9port = callPackage ../tools/system/plan9port {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa IOKit Metal QuartzCore;
inherit (darwin) DarwinTools;
};
plan9port = callPackage ../tools/system/plan9port { };

platformioPackages = dontRecurseIntoAttrs (callPackage ../development/embedded/platformio { });
platformio = platformioPackages.platformio-chrootenv;
Expand Down Expand Up @@ -16939,18 +16933,11 @@ with pkgs;

ctmg = callPackage ../tools/security/ctmg { };

cmake = callPackage ../development/tools/build-managers/cmake {
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
inherit (libsForQt5) qtbase wrapQtAppsHook;
};
cmake = callPackage ../development/tools/build-managers/cmake { };

# can't use override - it triggers infinite recursion
cmakeMinimal = callPackage ../development/tools/build-managers/cmake {
isBootstrap = true;
qtbase = null;
wrapQtAppsHook = null;
# There is no SystemConfiguration in bootstrapTools, so this version gets
# patched to remove that dependency.
SystemConfiguration = null;
};

cmakeCurses = cmake.override {
Expand Down Expand Up @@ -23171,7 +23158,6 @@ with pkgs;

wxSVG = callPackage ../development/libraries/wxSVG {
wxGTK = wxGTK30;
inherit (darwin.apple_sdk.frameworks) Cocoa;
};

wtk = callPackage ../development/libraries/wtk { };
Expand Down Expand Up @@ -30705,7 +30691,6 @@ with pkgs;

mpv-unwrapped = callPackage ../applications/video/mpv {
inherit lua;
inherit (darwin.apple_sdk.frameworks) CoreFoundation Cocoa CoreAudio MediaPlayer;
};

# Wraps without trigerring a rebuild
Expand Down Expand Up @@ -37352,9 +37337,7 @@ with pkgs;

soundmodem = callPackage ../applications/radio/soundmodem {};

soundOfSorting = callPackage ../misc/sound-of-sorting {
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
soundOfSorting = callPackage ../misc/sound-of-sorting { };

sourceAndTags = callPackage ../misc/source-and-tags {
hasktags = haskellPackages.hasktags;
Expand Down