From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MIGqDSlIfF9SPgAA0tVLHw (envelope-from ) for ; Tue, 06 Oct 2020 10:34:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aNVtCSlIfF80LgAAbx9fmQ (envelope-from ) for ; Tue, 06 Oct 2020 10:34:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9BB849401CD for ; Tue, 6 Oct 2020 10:34:16 +0000 (UTC) Received: from localhost ([::1]:32968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPkIQ-0005qX-Um for larch@yhetil.org; Tue, 06 Oct 2020 06:34:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPkIF-0005pm-9F for guix-patches@gnu.org; Tue, 06 Oct 2020 06:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPkID-0000WY-Sj for guix-patches@gnu.org; Tue, 06 Oct 2020 06:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPkID-0002RK-ND for guix-patches@gnu.org; Tue, 06 Oct 2020 06:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43795] [PATCH] gnu: stockfish: Update to 12. Resent-From: Michael Rohleder Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Oct 2020 10:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43795 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 43795@debbugs.gnu.org Received: via spool by 43795-submit@debbugs.gnu.org id=B43795.16019803899322 (code B ref 43795); Tue, 06 Oct 2020 10:34:01 +0000 Received: (at 43795) by debbugs.gnu.org; 6 Oct 2020 10:33:09 +0000 Received: from localhost ([127.0.0.1]:51756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPkHM-0002QH-PZ for submit@debbugs.gnu.org; Tue, 06 Oct 2020 06:33:09 -0400 Received: from wp224.webpack.hosteurope.de ([80.237.132.231]:40004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPkHI-0002Q5-99 for 43795@debbugs.gnu.org; Tue, 06 Oct 2020 06:33:06 -0400 Received: from www.rohleder.de ([37.61.204.227]); authenticated by wp224.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1kPkHG-0003Hq-Au; Tue, 06 Oct 2020 12:33:02 +0200 Received: from [192.168.1.3] (helo=micha) by www.rohleder.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kPkHE-0006mt-Ql; Tue, 06 Oct 2020 12:33:01 +0200 From: Michael Rohleder References: <20201004153359.31979-1-mike@rohleder.de> <87ft6r4wa5.fsf@gnu.org> X-PGP-Fingerprint: 755E 2DE5 D0D5 85C5 2E78 2830 7C7A FFBE FEF2 CB25 X-PGP-Key: https://www.rohleder.de/~mike/pgpkey.asc Date: Tue, 06 Oct 2020 12:32:57 +0200 In-Reply-To: <87ft6r4wa5.fsf@gnu.org> (Mathieu Othacehe's message of "Tue, 06 Oct 2020 10:02:26 +0200") Message-ID: <87tuv77ig6.fsf@rohleder.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-bounce-key: webpack.hosteurope.de;mike@rohleder.de;1601980384;193147e8; X-HE-SMSGID: 1kPkHG-0003Hq-Au X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: E9NMWh8/2LK0 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Thank you for reviewing! Mathieu Othacehe writes: >> + (copy-file (assoc-ref inputs "net") "src/nn-82215d0fd0df.nnue") > > You could wrap this line and also add a comment explaining why this > extra input is necessary. Ok, did this and renamed the input to "neural-network". --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-stockfish-Update-to-12.patch Content-Transfer-Encoding: quoted-printable Content-Description: stockfish: Update to 12 >>From b128348ff8ea51b957f5bb811f88850ed541186c Mon Sep 17 00:00:00 2001 From: Michael Rohleder Date: Tue, 6 Oct 2020 12:22:33 +0200 Subject: [PATCH] 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 embedd it. =2D-- gnu/packages/games.scm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 00fc63aedf..d473baa335 100644 =2D-- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -11409,7 +11409,7 @@ etc. You can also play games on FICS or against an= engine.") (define-public stockfish (package (name "stockfish") =2D (version "11") + (version "12") (source (origin (method git-fetch) @@ -11418,8 +11418,15 @@ etc. You can also play games on FICS or against a= n engine.") (commit (string-append "sf_" version)))) (file-name (git-file-name name version)) (sha256 =2D (base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))= )) + (base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32")))) (build-system gnu-build-system) + (inputs + `(("neural-network" + ,(origin + (method url-fetch) + (uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.n= nue") + (sha256 + (base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"= )))))) (arguments `(#:tests? #f #:make-flags (list "-C" "src" @@ -11435,7 +11442,14 @@ etc. You can also play games on FICS or against a= n engine.") ("mips64el-linux" "general-64") (_ "general-32")))) #:phases (modify-phases %standard-phases =2D (delete 'configure)))) + (delete 'configure) + ;; The official neural network file is needed for buildi= ng + ;; 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") (description "Stockfish is a very strong chess engine. It is much stronger than t= he =2D-=20 2.28.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Happiness does not depend on what you have or who your are. It solely relies on what you think. - Buddha --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFFBAEBCAAvFiEEdV4t5dDVhcUueCgwfHr/vv7yyyUFAl98R9oRHG1pa2VAcm9o bGVkZXIuZGUACgkQfHr/vv7yyyVf2ggAgvVYoArhXhNbMYnf17hE8oFySFaCmaDc IC8szdMiJ4MfNxJDnBKT8hlu0xkWAfQ7RSlinHDpDENHfuunvSG6L6OAbEq5SsHr 2ZIIyrMC8ykwDVIZQq4SKhrIbr0wUWfZlICwFeZ4WXsAQUb7EReueG1Y6NqaQVMd uN+BSEDN5d8MVxKaThBX+8gmObBnJHgrM0UQcEvMv18Wx+aFfBqyZjiVpjdvJerg c7aXUdWpeE2mGGVq4jHENCjQNt9Ey/64/sxMyEu11QCKAjvbcA4LjlvayD+pD35F f+4hFQ4ITBmHnZgV1TltSPHqPunyiJkqJfgIWFvtGo4igJhYquL5YA== =l8eA -----END PGP SIGNATURE----- --==-=-=--