mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gobject-introspection: Fix inputs when cross-compiling.
* gnu/packages/glib.scm (gobject-introspection)[native-inputs]: Add 'bison' and 'flex' when cross-compiling. (gobject-introspection)[inputs]: Use 'python' instead of 'python-wrapper' when cross-compiling. Remove 'bison', 'flex' when cross-compiling.
This commit is contained in:
parent
c185e5ad67
commit
4ab2c0d600
1 changed files with 12 additions and 4 deletions
|
@ -438,11 +438,19 @@ (define gobject-introspection
|
|||
#t)))))
|
||||
(native-inputs
|
||||
`(("glib" ,glib "bin")
|
||||
("pkg-config" ,pkg-config)))
|
||||
("pkg-config" ,pkg-config)
|
||||
;; TODO(core-updates): Unconditionally place "flex" and "bison"
|
||||
;; in 'native-inputs'.
|
||||
,@(if (%current-target-system)
|
||||
`(("bison" ,bison)
|
||||
("flex" ,flex))
|
||||
'())))
|
||||
(inputs
|
||||
`(("bison" ,bison)
|
||||
("flex" ,flex)
|
||||
("python" ,python-wrapper)
|
||||
`(,@(if (%current-target-system)
|
||||
`(("python" ,python))
|
||||
`(("bison" ,bison)
|
||||
("flex" ,flex)
|
||||
("python" ,python-wrapper)))
|
||||
("zlib" ,zlib)))
|
||||
(propagated-inputs
|
||||
`(("glib" ,glib)
|
||||
|
|
Loading…
Reference in a new issue