mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
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:
parent
d87a0efeeb
commit
561db254a5
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue