[bug#70481,2/2] gnu: qmmp: Add missing inputs.
Commit Message
* gnu/packages/music.scm (qmmp): Add inputs to support unpacking skins.
[inputs]: Add tar and unzip.
[arguments]: Add phase to set absolute paths to these programs.
Change-Id: I79a6530ad27b474ecc64e5b7de36e0370595bc69
---
gnu/packages/music.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
@@ -615,7 +615,15 @@ (define-public qmmp
(build-system qt-build-system)
(arguments
(list #:qtbase qtbase
- #:tests? #f)) ; there are no tests
+ #:tests? #f ; there are no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/plugins/Ui/skinned/skinreader.cpp"
+ (("\"(tar|unzip)\"" _ name)
+ (let ((file (string-append "/bin/" name)))
+ (string-append "\"" (search-input-file inputs file) "\"")))))))))
(inputs
;; Missing optional inputs:
;; libsidplay2 ; input plugin
@@ -645,6 +653,8 @@ (define-public qmmp
qttools
soxr
taglib
+ tar ; for loading skins
+ unzip ; for loading skins
wavpack
wildmidi))
(native-inputs