diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-27 15:50:56 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:45 +0100 |
| commit | 13f8875a50ee7a25e413a34be54f32ee69c450f9 (patch) | |
| tree | c42b702af28d1ffe64d83845f251fc6bde9e53d5 /gnu | |
| parent | ee9f7169fb21a804003aead78221d1324767985b (diff) | |
gnu: jack-select: Switch to pyproject.
* gnu/packages/music.scm (jack-select): Use G-Expressions.
[build-system]: Switch to pyproject-build-system.
[phases]{configure, build, install}: Use phases from
pyproject-build-system.
{fix-libasound-path}: New phase.
[inputs]: Remove python-dbus and python-wrapper; add gtk+ and
python-dbus-python.
[native-inputs]: Add python-setuptools.
Change-Id: Ic82c8bb0386811f207cafd9b0612c44c9ff9c373
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/music.scm | 45 |
1 files changed, 16 insertions, 29 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 1fadfdaa560..cc0fb386585 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -3611,41 +3611,28 @@ can connect to any JACK port and record the output into a stereo WAV file.") (sha256 (base32 "1zijk9ly2fczxsnnrqr8s0ajmlyx1j1vd8gk0rm5dj5zyhhmia7f")))) - (build-system gnu-build-system) + (build-system pyproject-build-system) (arguments - `(#:modules ((guix build gnu-build-system) - ((guix build python-build-system) #:prefix python:) - (guix build utils)) - #:imported-modules (,@%default-gnu-imported-modules - (guix build python-build-system)) - #:make-flags - (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) - #:tests? #f ; there are none - #:phases - (modify-phases %standard-phases - (replace 'configure - (lambda* (#:key inputs #:allow-other-keys) - ;; python-dbus cannot be found but it's really there. See - ;; https://github.com/SpotlightKid/jack-select/issues/2 - (substitute* "setup.py" - (("'dbus-python',") "")) - ;; Fix reference to dlopened libraries. - (substitute* "jackselect/alsainfo.py" - (("libasound.so.2") - (search-input-file inputs "/lib/libasound.so.2"))))) - (replace 'build - (assoc-ref python:%standard-phases 'build)) - (add-after 'install 'wrap - (assoc-ref python:%standard-phases 'wrap))))) + (list + #:tests? #f ; there are none + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-libasound-path + (lambda* (#:key inputs #:allow-other-keys) + ;; Fix reference to dlopened libraries. + (substitute* "jackselect/alsainfo.py" + (("libasound.so.2") + (search-input-file inputs "/lib/libasound.so.2")))))))) (native-inputs - (list pkg-config)) + (list pkg-config + python-setuptools)) (inputs (list alsa-lib - python-dbus + gtk+ + python-dbus-python python-pygobject python-pyudev - python-pyxdg - python-wrapper)) + python-pyxdg)) (home-page "https://github.com/SpotlightKid/jack-select") (synopsis "Systray application to quickly change the JACK-DBus configuration") (description "This application displays an icon in the system tray (also |
