Skip to content

Commit

Permalink
gtk4: fix x64 darwin
Browse files Browse the repository at this point in the history
use 10.15 sdk to fix build
  • Loading branch information
paparodeo committed Oct 24, 2024
1 parent e80a134 commit dc564ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 5 additions & 6 deletions pkgs/development/libraries/gtk/4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
, cupsSupport ? stdenv.hostPlatform.isLinux
, compileSchemas ? stdenv.hostPlatform.emulatorAvailable buildPackages
, cups
, AppKit
, Cocoa
, libexecinfo
, broadwaySupport ? true
, testers
, apple-sdk
, apple-sdk_10_15
}:

let
Expand Down Expand Up @@ -131,8 +131,9 @@ stdenv.mkDerivation (finalAttrs: {
libXi
libXrandr
libXrender
]) ++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit
]) ++ lib.optionals (stdenv.hostPlatform.isDarwin
&& lib.versionOlder apple-sdk.version "10.15") [
apple-sdk_10_15
] ++ lib.optionals trackerSupport [
tinysparql
] ++ lib.optionals waylandSupport [
Expand All @@ -143,8 +144,6 @@ stdenv.mkDerivation (finalAttrs: {
xorg.libXinerama
] ++ lib.optionals cupsSupport [
cups
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Cocoa
] ++ lib.optionals stdenv.hostPlatform.isMusl [
libexecinfo
];
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20052,9 +20052,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa QuartzCore;
};

gtk4 = callPackage ../development/libraries/gtk/4.x.nix {
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
};
gtk4 = callPackage ../development/libraries/gtk/4.x.nix { };


# On darwin gtk uses cocoa by default instead of x11.
Expand Down

0 comments on commit dc564ca

Please sign in to comment.