guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: Add stockfish.


From: guix-commits
Subject: 03/03: gnu: Add stockfish.
Date: Mon, 10 Feb 2020 09:07:28 -0500 (EST)

glv pushed a commit to branch master
in repository guix.

commit 814091efe2e36d83f10b874afe3f6da56ff34e4b
Author: Guillaume Le Vaillant <address@hidden>
AuthorDate: Mon Feb 10 14:59:58 2020 +0100

    gnu: Add stockfish.
    
    * gnu/packages/games.scm (stockfish): New variable.
---
 gnu/packages/games.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 1539a9c..c23f624 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -9870,3 +9870,41 @@ collection of chess games in many ways: browse, edit, 
add, organize, analyze,
 etc.  You can also play games on FICS or against an engine.")
     (home-page "http://chessx.sourceforge.net/";)
     (license license:gpl2+)))
+
+(define-public stockfish
+  (package
+    (name "stockfish")
+    (version "11")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/official-stockfish/Stockfish.git";)
+             (commit (string-append "sf_" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f
+       #:make-flags (list "-C" "src"
+                          "build"
+                          (string-append "PREFIX="
+                                         (assoc-ref %outputs "out"))
+                          (string-append "ARCH="
+                                         ,(match (%current-system)
+                                            ("x86_64-linux" "x86-64")
+                                            ("i686-linux" "x86-32")
+                                            ("aarch64-linux" "general-64")
+                                            ("armhf-linux" "armv7")
+                                            ("mips64el-linux" "general-64")
+                                            (_ "general-32"))))
+       #:phases (modify-phases %standard-phases
+                  (delete 'configure))))
+    (synopsis "Strong chess engine")
+    (description
+     "Stockfish is a very strong chess engines.  It is much stronger than the
+best human chess grandmasters.  It can be used with UCI-compatible GUIs like
+ChessX.")
+    (home-page "https://stockfishchess.org/";)
+    (license license:gpl3+)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]