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>master
parent
d87a0efeeb
commit
561db254a5
|
@ -3342,10 +3342,18 @@ exec ~a/bin/freedink -refdir ~a/share/dink\n"
|
|||
(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
|
||||
|
|
Reference in New Issue