gnu: xboard: Set default engine to gnuchess.

Fixes <https://issues.guix.gnu.org/45236>.

* gnu/packages/games.scm (xboard): Set default engine to gnuchess.
[arguments]: Add phase 'patch-default-engine.
[inputs]: Add chess.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Michael Rohleder 2021-05-04 01:07:28 +02:00 committed by Ludovic Courtès
parent d87a0efeeb
commit 561db254a5
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3342,10 +3342,18 @@ (define-public xboard
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "xboard.conf"
(("aplay -q")
(string-append (assoc-ref inputs "alsa-utils") "/bin/aplay -q")))
#t)))))
(string-append (assoc-ref inputs "alsa-utils") "/bin/aplay -q")))))
;; Fixes https://issues.guix.gnu.org/45236.
(add-after 'unpack 'patch-default-engine
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "xboard.conf"
(("-firstChessProgram fairymax")
(string-append "-firstChessProgram "
(assoc-ref inputs "chess")
"/bin/gnuchessx"))))))))
(inputs
`(("alsa-utils" ,alsa-utils)
("chess" ,chess)
("gtk+" ,gtk+-2)
("librsvg" ,librsvg)))
(native-inputs