mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
gtk-mac-integration: Fix build on darwin
This commit is contained in:
parent
3aa4bf236f
commit
30585245b9
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue