[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: gnu: gnome-tweaks: Set the python path.
From: |
guix-commits |
Subject: |
02/07: gnu: gnome-tweaks: Set the python path. |
Date: |
Mon, 15 Nov 2021 06:11:34 -0500 (EST) |
civodul pushed a commit to branch core-updates-frozen
in repository guix.
commit 7978b6454bdb4636807caa30681b62de9880e344
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Tue Nov 9 22:57:13 2021 +0000
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>
---
gnu/packages/gnome.scm | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 0bce8f2..9d1a1c2 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)
- branch core-updates-frozen updated (6cdf4e5 -> 4b28553), guix-commits, 2021/11/15
- 01/07: gnu: gnome-tweaks: Use libhandy 1., guix-commits, 2021/11/15
- 05/07: gnu: seahorse: Use libsoup 2., guix-commits, 2021/11/15
- 03/07: gnu: gnome-tweaks: Add bash-minimal as an input., guix-commits, 2021/11/15
- 07/07: news: Notify of Wayland support in GDM, guix-commits, 2021/11/15
- 04/07: gnu: gcr: Upgrade to 3.41.0., guix-commits, 2021/11/15
- 06/07: gnu: seahorse: Upgrade to 41.0., guix-commits, 2021/11/15
- 02/07: gnu: gnome-tweaks: Set the python path.,
guix-commits <=