efraim pushed a commit to branch master
in repository guix.

commit 3f45c3b12b5a4b319634a93db8a025591c3054ea
Author: Zheng Junjie <[email protected]>
AuthorDate: Tue Feb 28 16:33:37 2023 +0800

    gnu: gobject-introspection: Fix cross-compiling.
    
    * gnu/packages/glib.scm(gobject-introspection)[native-inputs]: When
    cross-compiling add python.
    
    Signed-off-by: Efraim Flashner <[email protected]>
---
 gnu/packages/glib.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index dcc45e3310..e988e8dc87 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -556,7 +556,10 @@ be used when cross-compiling."
                                           "/_giscanner"))))
                 #~()))))
     (native-inputs
-     `(("glib" ,glib "bin")
+     `(,@(if (%current-target-system)
+           `(("python" ,python))
+           '())
+       ("glib" ,glib "bin")
        ("pkg-config" ,pkg-config)
        ("bison" ,bison)
        ("flex" ,flex)))

Reply via email to