gnu: xboard: Patch path to aplay.

Fixes <http://issues.guix.gnu.org/47195>.

* gnu/packages/games.scm (xboard): Patch path to aplay.
[inputs]: Add alsa-utils.
[arguments]: Add phase patch-aplay-path.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Michael Rohleder 2021-05-02 13:46:20 +02:00 committed by Ludovic Courtès
parent d94e9cb774
commit 55b6e1a7ad
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3323,8 +3323,19 @@ (define-public xboard
(base32
"1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; Fixes https://issues.guix.gnu.org/47195.
(add-after 'unpack 'patch-aplay-path
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "xboard.conf"
(("aplay -q")
(string-append (assoc-ref inputs "alsa-utils") "/bin/aplay -q")))
#t)))))
(inputs
`(("gtk+" ,gtk+-2)
`(("alsa-utils" ,alsa-utils)
("gtk+" ,gtk+-2)
("librsvg" ,librsvg)))
(native-inputs
`(("texinfo" ,texinfo)