mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 04:34:46 +00:00
Merge pull request #151189 from NickCao/gtk2
gtk2: fix cross compilation
This commit is contained in:
commit
9704751401
@ -4,7 +4,7 @@
|
|||||||
, cupsSupport ? config.gtk2.cups or stdenv.isLinux, cups
|
, cupsSupport ? config.gtk2.cups or stdenv.isLinux, cups
|
||||||
, gdktarget ? if stdenv.isDarwin then "quartz" else "x11"
|
, gdktarget ? if stdenv.isDarwin then "quartz" else "x11"
|
||||||
, AppKit, Cocoa
|
, AppKit, Cocoa
|
||||||
, fetchpatch
|
, fetchpatch, buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
@ -38,6 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
gtkCleanImmodulesCache
|
gtkCleanImmodulesCache
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
nativeBuildInputs = setupHooks ++ [ perl pkg-config gettext gobject-introspection ];
|
nativeBuildInputs = setupHooks ++ [ perl pkg-config gettext gobject-introspection ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -72,6 +73,9 @@ stdenv.mkDerivation rec {
|
|||||||
"--disable-glibtest"
|
"--disable-glibtest"
|
||||||
"--disable-introspection"
|
"--disable-introspection"
|
||||||
"--disable-visibility"
|
"--disable-visibility"
|
||||||
|
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||||
|
"ac_cv_path_GTK_UPDATE_ICON_CACHE=${buildPackages.gtk2}/bin/gtk-update-icon-cache"
|
||||||
|
"ac_cv_path_GDK_PIXBUF_CSOURCE=${buildPackages.gdk-pixbuf.dev}/bin/gdk-pixbuf-csource"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # needs X11
|
doCheck = false; # needs X11
|
||||||
|
Loading…
Reference in New Issue
Block a user