diff options
author | Mark Vainomaa <mikroskeem@mikroskeem.eu> | 2022-01-04 01:30:01 +0200 |
---|---|---|
committer | Mark Vainomaa <mikroskeem@mikroskeem.eu> | 2022-01-04 09:59:11 +0200 |
commit | d21e4dda7c7018dfe1f4624079e6ad819ab23255 (patch) | |
tree | 024e01b942f021c0c4778c3473e883822e2fa5de /pkgs/development/libraries/gtk/3.x.nix | |
parent | 1bcd2863e3b9457d204e0ef177cbaff139505fe0 (diff) | |
download | nixpkgs-d21e4dda7c7018dfe1f4624079e6ad819ab23255.tar nixpkgs-d21e4dda7c7018dfe1f4624079e6ad819ab23255.tar.gz nixpkgs-d21e4dda7c7018dfe1f4624079e6ad819ab23255.tar.bz2 nixpkgs-d21e4dda7c7018dfe1f4624079e6ad819ab23255.tar.lz nixpkgs-d21e4dda7c7018dfe1f4624079e6ad819ab23255.tar.xz nixpkgs-d21e4dda7c7018dfe1f4624079e6ad819ab23255.tar.zst nixpkgs-d21e4dda7c7018dfe1f4624079e6ad819ab23255.zip |
gtk3: fix darwin build
3.24.31 does not declare QuartzCore dependency properly and fails to link
Diffstat (limited to 'pkgs/development/libraries/gtk/3.x.nix')
-rw-r--r-- | pkgs/development/libraries/gtk/3.x.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gtk/3.x.nix b/pkgs/development/libraries/gtk/3.x.nix index 02443619b26..9a2655a379f 100644 --- a/pkgs/development/libraries/gtk/3.x.nix +++ b/pkgs/development/libraries/gtk/3.x.nix @@ -44,6 +44,7 @@ , cups , AppKit , Cocoa +, QuartzCore , broadwaySupport ? true }: @@ -83,6 +84,12 @@ stdenv.mkDerivation rec { # e.g. https://gitlab.gnome.org/GNOME/gtk/blob/3.24.4/gtk/gtk-launch.c#L31-33 # https://gitlab.gnome.org/GNOME/gtk/merge_requests/536 ./patches/3.0-darwin-x11.patch + + # 3.24.31 does not declare QuartzCore dependency properly and fails to link + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/gtk/-/commit/0ac61443694b477c41fc246cb387ef86aba441de.patch"; + sha256 = "sha256-aiT/NeAxIl6ZS9KwMssQPzD7NtW7qqeySc/CyWakQfk="; + }) ]; nativeBuildInputs = [ @@ -133,6 +140,7 @@ stdenv.mkDerivation rec { ] ++ lib.optionals stdenv.isDarwin [ # explicitly propagated, always needed Cocoa + QuartzCore ] ++ lib.optionals waylandSupport [ libGL wayland |