diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-01-28 09:45:39 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:49 +0100 |
| commit | bb747b39b2232182fb4c5c79e725857e051d4b3d (patch) | |
| tree | 4b6cea848838d39a5324778164eb30372ce7c914 | |
| parent | d4b7a4276e9b95c0cdf2797dc55199d8c6ce8190 (diff) | |
gnu: soundconverter: Switch to pyproject.
* gnu/packages/gnome.scm (soundconverter):
[arguments]: Improve style, use gexps.
<#:imported-modules, #:modules>: Switch to pyproject-build-system.
Cleanup unecessary use of gnu build-system modules.
<#:phases>: Migrate phase 'wrap-soundconverter-for-python to
pyproject. Improve phase 'wrap-soundconverter.
Change-Id: I62b8b15c383c899adcf9226e0396efc31588b0d6
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/gnome.scm | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 48d4b25e54b..64df88c1b34 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -11920,32 +11920,28 @@ mp3, Ogg Vorbis and FLAC") (base32 "1jv8m82hi23ilrgdznlc1jhp2jm8bw1yrw0chh3qw2l0sixvkl11")))) (build-system glib-or-gtk-build-system) (arguments - `(#:imported-modules ((guix build python-build-system) - (guix build glib-or-gtk-build-system) - ,@%default-gnu-imported-modules) - - #:modules ((guix build glib-or-gtk-build-system) + (list + #:imported-modules (append %glib-or-gtk-build-system-modules + %pyproject-build-system-modules) + #:modules '((guix build glib-or-gtk-build-system) (guix build utils) - ((guix build gnu-build-system) #:prefix gnu:) - ((guix build python-build-system) #:prefix python:)) - - #:phases - (modify-phases %standard-phases - (add-after 'install 'wrap-soundconverter-for-python - (assoc-ref python:%standard-phases 'wrap)) - (add-after 'install 'wrap-soundconverter - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (gi-typelib-path (getenv "GI_TYPELIB_PATH")) - (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) - (wrap-program (string-append out "/bin/soundconverter") - `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) - `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))) - #t))))) + ((guix build pyproject-build-system) #:prefix py:)) + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-soundconverter-for-python + (assoc-ref py:%standard-phases 'wrap)) + (add-after 'install 'wrap-soundconverter + (lambda _ + (let ((gi-typelib-path (getenv "GI_TYPELIB_PATH")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append #$output "/bin/soundconverter") + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix + (,gst-plugin-path))))))))) (native-inputs - `(("intltool" ,intltool) - ("pkg-config" ,pkg-config) - ("glib:bin" ,glib "bin"))) + (list intltool + pkg-config + (list glib "bin"))) (inputs (list bash-minimal gtk+ |
