[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
93/163: gnu: byobu: Wrap with the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
93/163: gnu: byobu: Wrap with the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:41 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 905abbe7f2d33a95dd9659b2d1cdc5d4329ed2f0
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 23:08:00 2021 -0500
gnu: byobu: Wrap with the new Guix PYTHONPATH.
* gnu/packages/screen.scm (byobu)[phases]: Remove trailing #t.
{wrap-python-scripts}: Wrap with the new Guix PYTHONPATH.
---
gnu/packages/screen.scm | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/screen.scm b/gnu/packages/screen.scm
index 0491731..92076c7 100644
--- a/gnu/packages/screen.scm
+++ b/gnu/packages/screen.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -119,29 +120,33 @@ controlling terminal and attach to it later.")
`(("python" ,python-wrapper) ; for config and session GUIs
("python-newt" ,newt "python")))
(arguments
- `(#:phases
+ `(#:imported-modules ,(cons '(guix build python-build-system)
+ %gnu-build-system-modules)
+ #:modules ((guix build gnu-build-system)
+ ((guix build python-build-system) #:select (guix-pythonpath))
+ (guix build utils))
+ #:phases
(modify-phases %standard-phases
(add-before
'configure 'provide-locale
(lambda* (#:key inputs #:allow-other-keys)
(let ((libc (assoc-ref inputs "libc"))) ; implicit input
(substitute* "usr/bin/byobu.in"
- (("locale") (string-append libc "/bin/locale")))
- #t)))
+ (("locale") (string-append libc "/bin/locale"))))))
(add-after
'install 'wrap-python-scripts
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((python (string-append (assoc-ref inputs "python")
"/bin/python"))
+ (pythonpath (guix-pythonpath inputs))
(out (assoc-ref outputs "out"))
(config (string-append out "/bin/byobu-config"))
(select (string-append out "/bin/byobu-select-session")))
(wrap-program config
`("BYOBU_PYTHON" = (,python))
- `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
+ `(,python ":" prefix (,(getenv python))))
(wrap-program select
- `("BYOBU_PYTHON" = (,python)))
- #t))))))
+ `("BYOBU_PYTHON" = (,python)))))))))
(home-page "https://byobu.org/")
(synopsis "Text-based window manager and terminal multiplexer")
(description
- 79/163: gnu: gdk-pixbuf: Update to 2.42.2., (continued)
- 79/163: gnu: gdk-pixbuf: Update to 2.42.2., guix-commits, 2021/01/25
- 142/163: gnu: python-libcst: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 140/163: gnu: python-tblib: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 158/163: gnu: python-jsonpickle: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 159/163: gnu: python-databricks-cli: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 161/163: gnu: python-flask-wtf: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 49/163: gnu: cups: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 75/163: gnu: roguebox-adventures: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 89/163: gnu: python-fenics-fiat: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 105/163: gnu: gnome-music: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 93/163: gnu: byobu: Wrap with the new Guix PYTHONPATH.,
guix-commits <=
- 99/163: gnu: pagekit: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 98/163: gnu: blueman: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 91/163: gnu: python-fenics-ffc: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 95/163: gnu: rapid-photo-downloader: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 129/163: gnu: python-jsonschema: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 128/163: gnu: python-click: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 139/163: gnu: python-moto: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 148/163: gnu: python-cheetah: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 149/163: gnu: python-pbkdf2: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 150/163: gnu: python-rfc3986: Do not set PYTHONPATH., guix-commits, 2021/01/25