gnu: gnome-tweaks: Set the python path.
gnu/packages/gnome.scm (gnome-tweaks)[phase wrap-gi-typelib-and-python]: Also wrap with GUIX_PYTHONPATH. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
e0b6318a5a
commit
7978b6454b
1 changed files with 9 additions and 3 deletions
|
@ -9860,12 +9860,18 @@ existing databases over the internet.")
|
||||||
(("gtk-update-icon-cache") "true"))))
|
(("gtk-update-icon-cache") "true"))))
|
||||||
(add-after 'install 'wrap
|
(add-after 'install 'wrap
|
||||||
(@@ (guix build python-build-system) wrap))
|
(@@ (guix build python-build-system) wrap))
|
||||||
(add-after 'wrap 'wrap-gi-typelib
|
(add-after 'wrap 'wrap-gi-typelib-and-python
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(let ((out (assoc-ref outputs "out"))
|
||||||
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
|
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
|
||||||
(wrap-program (string-append out "/bin/gnome-tweaks")
|
(let ((python-path
|
||||||
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))))))))
|
(string-append out "/lib/python"
|
||||||
|
,(version-major+minor
|
||||||
|
(package-version python))
|
||||||
|
"/site-packages")))
|
||||||
|
(wrap-program (string-append out "/bin/gnome-tweaks")
|
||||||
|
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
|
||||||
|
`("GUIX_PYTHONPATH" ":" prefix (,python-path))))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
|
`(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
|
||||||
("intltool" ,intltool)
|
("intltool" ,intltool)
|
||||||
|
|
Reference in a new issue