mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 07:00:32 -05:00
gnu: stockfish: Update to 12.
* gnu/packages/games.scm (stockfish): Update to 12. [inputs]: Add fetching of the official neural network file. [arguments]: Add phase 'copy-net to copy this file and embed it. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
73a2fe4ab7
commit
b343f5d8fd
1 changed files with 17 additions and 3 deletions
|
@ -11409,7 +11409,7 @@ (define-public chessx
|
||||||
(define-public stockfish
|
(define-public stockfish
|
||||||
(package
|
(package
|
||||||
(name "stockfish")
|
(name "stockfish")
|
||||||
(version "11")
|
(version "12")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -11418,8 +11418,15 @@ (define-public stockfish
|
||||||
(commit (string-append "sf_" version))))
|
(commit (string-append "sf_" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))))
|
(base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(inputs
|
||||||
|
`(("neural-network"
|
||||||
|
,(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.nnue")
|
||||||
|
(sha256
|
||||||
|
(base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"))))))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f
|
`(#:tests? #f
|
||||||
#:make-flags (list "-C" "src"
|
#:make-flags (list "-C" "src"
|
||||||
|
@ -11435,7 +11442,14 @@ (define-public stockfish
|
||||||
("mips64el-linux" "general-64")
|
("mips64el-linux" "general-64")
|
||||||
(_ "general-32"))))
|
(_ "general-32"))))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(delete 'configure))))
|
(delete 'configure)
|
||||||
|
;; The official neural network file is needed for building
|
||||||
|
;; and is embedded in the resulting binary.
|
||||||
|
(add-after 'unpack 'copy-net
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(copy-file (assoc-ref inputs "neural-network")
|
||||||
|
"src/nn-82215d0fd0df.nnue")
|
||||||
|
#t)))))
|
||||||
(synopsis "Strong chess engine")
|
(synopsis "Strong chess engine")
|
||||||
(description
|
(description
|
||||||
"Stockfish is a very strong chess engine. It is much stronger than the
|
"Stockfish is a very strong chess engine. It is much stronger than the
|
||||||
|
|
Loading…
Reference in a new issue