all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#48210] [PATCH] gnu: xboard: Set default engine to gnuchess.
@ 2021-05-03 23:07 Michael Rohleder
  2021-05-05 13:28 ` bug#48210: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Rohleder @ 2021-05-03 23:07 UTC (permalink / raw)
  To: 48210; +Cc: Michael Rohleder

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.
---
 gnu/packages/games.scm | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 073e41eec6..b394e0e5e9 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3332,10 +3332,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
-- 
2.31.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#48210: [PATCH] gnu: xboard: Set default engine to gnuchess.
  2021-05-03 23:07 [bug#48210] [PATCH] gnu: xboard: Set default engine to gnuchess Michael Rohleder
@ 2021-05-05 13:28 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2021-05-05 13:28 UTC (permalink / raw)
  To: Michael Rohleder; +Cc: 48210-done

Hi,

Michael Rohleder <mike@rohleder.de> skribis:

> 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.

Applied, thanks!

One remaining issue, a minor one, is:

--8<---------------cut here---------------start------------->8---
/gnu/store/sf57176zicjqrjz4whh84qspqr4n590j-xboard-4.9.1/share/games/xboard/sounds/woodthunk.wav: Dosiero aŭ dosierujo ne ekzistas
--8<---------------cut here---------------end--------------->8---

:-)

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-05 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-03 23:07 [bug#48210] [PATCH] gnu: xboard: Set default engine to gnuchess Michael Rohleder
2021-05-05 13:28 ` bug#48210: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.