gtk-mac-integration: Fix build on darwin

This commit is contained in:
sempiternal-aurora 2026-07-02 17:52:13 +10:00
commit 30585245b9

View file

@ -9,6 +9,8 @@
gtk ? gtk3,
gtk3,
gobject-introspection,
# TODO: Clean up on `staging`
llvmPackages,
}:
stdenv.mkDerivation rec {
@ -28,6 +30,8 @@ stdenv.mkDerivation rec {
pkg-config
gtk-doc
gobject-introspection
# TODO: Clean up on `staging`
llvmPackages.lld
];
buildInputs = [ glib ];
propagatedBuildInputs = [ gtk ];
@ -36,6 +40,13 @@ stdenv.mkDerivation rec {
gtkdocize
'';
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
meta = {
description = "Provides integration for GTK applications into the Mac desktop";
license = lib.licenses.lgpl21;