about summary refs log tree commit diff
path: root/pkgs/development/libraries/gjs
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-08-07 01:48:42 +0300
committerArtturin <Artturin@artturin.com>2022-09-07 21:20:54 +0300
commitda9a9a440415b236f22f57ba67a24ab3fb53f595 (patch)
tree4e4051387f30d70f4de11e846b16067a02f0d79b /pkgs/development/libraries/gjs
parenta32cd711efe2b934b7a32b175f15ecba9962ba9b (diff)
treewide: cross fixes
Diffstat (limited to 'pkgs/development/libraries/gjs')
-rw-r--r--pkgs/development/libraries/gjs/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gjs/default.nix b/pkgs/development/libraries/gjs/default.nix
index c8e28236aa3c4..e242115900547 100644
--- a/pkgs/development/libraries/gjs/default.nix
+++ b/pkgs/development/libraries/gjs/default.nix
@@ -2,6 +2,7 @@
 , lib
 , stdenv
 , meson
+, mesonEmulatorHook
 , ninja
 , pkg-config
 , gnome
@@ -55,15 +56,17 @@ in stdenv.mkDerivation rec {
     makeWrapper
     which # for locale detection
     libxml2 # for xml-stripblanks
+    dbus # for dbus-run-session
+    gobject-introspection
+  ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
+    mesonEmulatorHook
   ];
 
   buildInputs = [
-    gobject-introspection
     cairo
     readline
     libsysprof-capture
     spidermonkey_91
-    dbus # for dbus-run-session
   ];
 
   checkInputs = [