GNU bug report logs - #66654
[PATCH] gnu: Add moonfish.

Previous Next

Package: guix-patches;

Reported by: zamfofex <zamfofex <at> twdb.moe>

Date: Fri, 20 Oct 2023 18:44:02 UTC

Severity: normal

Tags: patch

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66654 in the body.
You can then email your comments to 66654 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#66654; Package guix-patches. (Fri, 20 Oct 2023 18:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zamfofex <zamfofex <at> twdb.moe>:
New bug report received and forwarded. Copy sent to liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org. (Fri, 20 Oct 2023 18:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: zamfofex <zamfofex <at> twdb.moe>
To: guix-patches <at> gnu.org
Cc: zamfofex <zamfofex <at> twdb.moe>
Subject: [PATCH] gnu: Add moonfish.
Date: Fri, 20 Oct 2023 15:40:34 -0300
* gnu/packages/games.scm (moonfish): New variable.
---
 gnu/packages/games.scm | 50 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4d5b85248a..cd48130f08 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -10409,6 +10409,56 @@ (define-public stockfish
       (home-page "https://stockfishchess.org/")
       (license license:gpl3+))))
 
+(define-public moonfish
+  (let ((commit "69674e88a5393217a724b9390ff3c843bd0fc768")
+        (revision "1"))
+    (package
+      (name "moonfish")
+      (version (git-version "0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.sr.ht/~zamfofex/moonfish")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "10hfdjr6qi6ladmgq9h69v3zkarld9kjaav7q3y8w5fakljypjjb"))
+                (file-name (git-file-name name version))))
+      (build-system gnu-build-system)
+      (inputs (list bearssl cjson))
+      (outputs '("out" "tools"))
+      (arguments
+       `(#:make-flags '(,(string-append "CC="
+                                        (cc-for-target)))
+         #:tests? #f ;no check target
+         #:phases (modify-phases %standard-phases
+                    (delete 'configure) ;no configure script
+                    (replace 'install
+                      ;; no 'install' target
+                      (lambda _
+                        (let* ((out (assoc-ref %outputs "out"))
+                               (tools (assoc-ref %outputs "tools"))
+                               (out-bin (string-append out "/bin"))
+                               (tools-bin (string-append tools "/bin"))
+                               (tool (string-append tools-bin "/moonfish-")))
+                          (mkdir-p out-bin)
+                          (mkdir-p tools-bin)
+                          (copy-file "moonfish"
+                                     (string-append out-bin "/moonfish"))
+                          (copy-file "play"
+                                     (string-append tool "play"))
+                          (copy-file "lichess"
+                                     (string-append tool "lichess"))
+                          (copy-file "analyse"
+                                     (string-append tool "analyse"))))))))
+      (home-page "https://git.sr.ht/~zamfofex/moonfish")
+      (synopsis "Simple chess engine written in C")
+      (description
+       "moonfish is a toy UCI chess engine made for fun.  It is inspired by
+sunfish, but is written in C rather than Python.  It also has TUI tools for
+using any UCI engine and also to connect UCI engines to Lichess.")
+      (license license:agpl3+))))
+
 (define-public barrage
   (package
     (name "barrage")

base-commit: daeeaa221605726d8853b00261619ba039bd6db7
prerequisite-patch-id: fa910eaade316c0f90b10713e330b4a5094cf327
prerequisite-patch-id: 5c50cfc478757944497783ccb53f0bbdaaacedfc
prerequisite-patch-id: 1f0d9d1c7ae75a37170f7a6e3e4e6c3432c49981
prerequisite-patch-id: 17e3c302bf595929a92e1a4ef3be2af6686af253
-- 
2.41.0





Information forwarded to liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#66654; Package guix-patches. (Sat, 21 Oct 2023 01:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 66654 <at> debbugs.gnu.org (full text, mbox):

From: zamfofex <zamfofex <at> twdb.moe>
To: 66654 <at> debbugs.gnu.org
Cc: zamfofex <zamfofex <at> twdb.moe>
Subject: [PATCH v2] gnu: Add moonfish.
Date: Fri, 20 Oct 2023 22:17:28 -0300
* gnu/packages/games.scm (moonfish): New variable.
---
 gnu/packages/games.scm | 50 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4d5b85248a..97515abc10 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -10409,6 +10409,56 @@ (define-public stockfish
       (home-page "https://stockfishchess.org/")
       (license license:gpl3+))))
 
+(define-public moonfish
+  (let ((commit "4f8829009e8c26e6a878261e0bc4c7e7617ef6b6")
+        (revision "1"))
+    (package
+      (name "moonfish")
+      (version (git-version "0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.sr.ht/~zamfofex/moonfish")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "1ksg42x9cyn3pbfryy9raqb355k47cqcisascpy157c3cgdr2z60"))
+                (file-name (git-file-name name version))))
+      (build-system gnu-build-system)
+      (inputs (list bearssl cjson))
+      (outputs '("out" "tools"))
+      (arguments
+       `(#:make-flags '(,(string-append "CC="
+                                        (cc-for-target)))
+         #:tests? #f ;no check target
+         #:phases (modify-phases %standard-phases
+                    (delete 'configure) ;no configure script
+                    (replace 'install
+                      ;; no 'install' target
+                      (lambda _
+                        (let* ((out (assoc-ref %outputs "out"))
+                               (tools (assoc-ref %outputs "tools"))
+                               (out-bin (string-append out "/bin"))
+                               (tools-bin (string-append tools "/bin"))
+                               (tool (string-append tools-bin "/moonfish-")))
+                          (mkdir-p out-bin)
+                          (mkdir-p tools-bin)
+                          (copy-file "moonfish"
+                                     (string-append out-bin "/moonfish"))
+                          (copy-file "play"
+                                     (string-append tool "play"))
+                          (copy-file "lichess"
+                                     (string-append tool "lichess"))
+                          (copy-file "analyse"
+                                     (string-append tool "analyse"))))))))
+      (home-page "https://git.sr.ht/~zamfofex/moonfish")
+      (synopsis "Simple chess engine written in C")
+      (description
+       "moonfish is a toy UCI chess engine made for fun.  It is inspired by
+sunfish, but is written in C rather than Python.  It also has TUI tools for
+using any UCI engine and also to connect UCI engines to Lichess.")
+      (license license:agpl3+))))
+
 (define-public barrage
   (package
     (name "barrage")

base-commit: 17954419aa25bf947f3351d82a11dc2f5472acaa
-- 
2.41.0





Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Fri, 27 Oct 2023 11:54:02 GMT) Full text and rfc822 format available.

Notification sent to zamfofex <zamfofex <at> twdb.moe>:
bug acknowledged by developer. (Fri, 27 Oct 2023 11:54:02 GMT) Full text and rfc822 format available.

Message #13 received at 66654-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 66654-done <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add moonfish.
Date: Fri, 27 Oct 2023 13:52:12 +0200
Thanks for your patience and the patch!

I’ve changed the arguments to use G-expressions and pushed the package
with commit c11b9133d29a815d947b556551563c8dc4a68a35.

-- 
Ricardo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 24 Nov 2023 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.