diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-01-28 08:58:25 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:49 +0100 |
| commit | f795336e0fe269d0ca08bec1434cd5f2ab4cf18c (patch) | |
| tree | fb36392ed2e42ba5620a0ada14f62442ec546149 | |
| parent | 6f04e98b9d7759550892a765957362a9fed3b3cc (diff) | |
gnu: system-config-printer: Switch to pyproject.
* gnu/packages/gnome.scm (system-config-printer):
[arguments]<#:imported-modules, #:modules>: Switch to
pyproject-build-system.
<#:phases>{add-install-to-pythonpath, wrap-for-python}: Likewise.
{wrap}: Improve style.
Change-Id: Ie248069593758a7ab9c51146751d094480574092
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/gnome.scm | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 4c4a5fd462f..6912479f32c 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -2944,8 +2944,8 @@ guidelines.") (build-system glib-or-gtk-build-system) (arguments (list - #:imported-modules `((guix build python-build-system) - ,@%glib-or-gtk-build-system-modules) + #:imported-modules (append %glib-or-gtk-build-system-modules + %pyproject-build-system-modules) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-build-files @@ -2970,19 +2970,18 @@ guidelines.") '("config.guess" "config.sub"))))) #~()) (add-after 'install 'add-install-to-pythonpath - (@@ (guix build python-build-system) add-install-to-pythonpath)) + py:add-install-to-pythonpath) (add-after 'add-install-to-pythonpath 'wrap-for-python - (@@ (guix build python-build-system) wrap)) + py:wrap) (add-after 'install 'wrap - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (lambda _ + (let ((gi-typelib-path (getenv "GI_TYPELIB_PATH"))) (for-each (lambda (program) (wrap-program program `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) (map (lambda (name) - (string-append out "/bin/" name)) + (string-append #$output "/bin/" name)) '("system-config-printer" "system-config-printer-applet" "install-printerdriver" |
