unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / 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	[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

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git