mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
gsettings-desktop-schemas: re-disable introspection if no emulator
e.g. when cross compiling from Linux to FreeBSD.
Fixes: 24723644ac ("gsettings-desktop-schemas: build gir when cross")
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
, pkg-config
|
||||
, glib
|
||||
, gobject-introspection
|
||||
, buildPackages
|
||||
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages
|
||||
, meson
|
||||
, ninja
|
||||
, python3
|
||||
@@ -27,9 +29,14 @@ stdenv.mkDerivation rec {
|
||||
ninja
|
||||
pkg-config
|
||||
python3
|
||||
] ++ lib.optionals withIntrospection [
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
(lib.mesonBool "introspection" withIntrospection)
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x build-aux/meson/post-install.py
|
||||
patchShebangs build-aux/meson/post-install.py
|
||||
|
||||
Reference in New Issue
Block a user