gnu: python-gst: Fix build failure.
Building python-gst fails with: Unbound variable: python-version Therefore, add python-build-system to #:modules so that it's imported, and give it a prefix to avoid clashing with the gnu-build-system. Also, simplify the code by using the site-packages function from the python-build-system module. * gnu/packages/gstreamer.scm (python-gst)[arguments]: Rework to fix build failure.
This commit is contained in:
parent
2be878d8e5
commit
a5c2e7961c
|
@ -431,17 +431,14 @@ compression formats through the use of the libav library.")
|
||||||
"0f1d9rvy2qxlymmfzyknnfr5rz1vx69jv17gp7wnamc5s6p7mp2m"))))
|
"0f1d9rvy2qxlymmfzyknnfr5rz1vx69jv17gp7wnamc5s6p7mp2m"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; XXX: Factorize python-sitedir with python-build-system.
|
`(#:modules ((guix build gnu-build-system)
|
||||||
`(#:imported-modules (,@%gnu-build-system-modules
|
((guix build python-build-system) #:prefix python:))
|
||||||
|
#:imported-modules (,@%gnu-build-system-modules
|
||||||
(guix build python-build-system))
|
(guix build python-build-system))
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
(let* ((python (assoc-ref %build-inputs "python"))
|
(list (string-append
|
||||||
(python-version (python-version python))
|
"--with-pygi-overrides-dir="
|
||||||
(python-sitedir (string-append
|
(python:site-packages %build-inputs %outputs) "gi/overrides"))))
|
||||||
"lib/python" python-version "/site-packages")))
|
|
||||||
(list (string-append
|
|
||||||
"--with-pygi-overrides-dir=" %output "/" python-sitedir
|
|
||||||
"/gi/overrides")))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("python" ,python)))
|
("python" ,python)))
|
||||||
|
|
Loading…
Reference in New Issue