diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-02-06 14:53:40 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-03-02 14:41:53 +0000 |
commit | 7c643c33121fd54162f7e81c148b776e903c05d2 (patch) | |
tree | 48b3646ff68c151d0a52073c76f53dcdd2633a85 | |
parent | 69b87ae0ec53ab876263ce5bae4bc7fd9bf3aa4c (diff) | |
download | nixpkgs-7c643c33121fd54162f7e81c148b776e903c05d2.tar nixpkgs-7c643c33121fd54162f7e81c148b776e903c05d2.tar.gz nixpkgs-7c643c33121fd54162f7e81c148b776e903c05d2.tar.bz2 nixpkgs-7c643c33121fd54162f7e81c148b776e903c05d2.tar.lz nixpkgs-7c643c33121fd54162f7e81c148b776e903c05d2.tar.xz nixpkgs-7c643c33121fd54162f7e81c148b776e903c05d2.tar.zst nixpkgs-7c643c33121fd54162f7e81c148b776e903c05d2.zip |
gsettings-desktop-schemas: re-disable introspection if no emulator
e.g. when cross compiling from Linux to FreeBSD. Fixes: 24723644acd ("gsettings-desktop-schemas: build gir when cross")
-rw-r--r-- | pkgs/development/libraries/gsettings-desktop-schemas/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gsettings-desktop-schemas/default.nix b/pkgs/development/libraries/gsettings-desktop-schemas/default.nix index 7431ca1f82a..c21b3a3e535 100644 --- a/pkgs/development/libraries/gsettings-desktop-schemas/default.nix +++ b/pkgs/development/libraries/gsettings-desktop-schemas/default.nix @@ -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 |