diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2021-11-09 22:57:13 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-11-15 10:34:54 +0100 |
commit | 7978b6454bdb4636807caa30681b62de9880e344 (patch) | |
tree | ac0478ad745c166791bfba71c236c55f385021f1 /gnu/packages | |
parent | e0b6318a5a5d08d82ce75cd85998ca3694d2b937 (diff) | |
download | guix-7978b6454bdb4636807caa30681b62de9880e344.tar.gz |
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/gnome.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 0bce8f2489..9d1a1c25ce 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -9860,12 +9860,18 @@ existing databases over the internet.") (("gtk-update-icon-cache") "true")))) (add-after 'install '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) (let ((out (assoc-ref outputs "out")) (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) - (wrap-program (string-append out "/bin/gnome-tweaks") - `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))))))) + (let ((python-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 `(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc. ("intltool" ,intltool) |