From patchwork Fri Oct 20 18:40:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zamfofex X-Patchwork-Id: 55079 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 411E427BBEA; Fri, 20 Oct 2023 19:43:57 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2EA5327BBE2 for ; Fri, 20 Oct 2023 19:43:56 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtuTJ-0005dG-SK; Fri, 20 Oct 2023 14:43:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtuTB-0005d1-IJ for guix-patches@gnu.org; Fri, 20 Oct 2023 14:43:37 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtuTB-00020C-8L for guix-patches@gnu.org; Fri, 20 Oct 2023 14:43:37 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtuTa-00019x-DF; Fri, 20 Oct 2023 14:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66654] [PATCH] gnu: Add moonfish. Resent-From: zamfofex Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Fri, 20 Oct 2023 18:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66654 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66654@debbugs.gnu.org Cc: zamfofex , Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Liliana Marie Prikler , =?utf-8?b?5a6L5paH5q2m?= Received: via spool by submit@debbugs.gnu.org id=B.16978273964368 (code B ref -1); Fri, 20 Oct 2023 18:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Oct 2023 18:43:16 +0000 Received: from localhost ([127.0.0.1]:41441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtuSq-00018N-8c for submit@debbugs.gnu.org; Fri, 20 Oct 2023 14:43:16 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtuSo-000189-DX for submit@debbugs.gnu.org; Fri, 20 Oct 2023 14:43:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtuSH-0005Mz-OZ for guix-patches@gnu.org; Fri, 20 Oct 2023 14:42:41 -0400 Received: from mta-10-4.privateemail.com ([198.54.122.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtuSF-0001tQ-Cw for guix-patches@gnu.org; Fri, 20 Oct 2023 14:42:41 -0400 Received: from mta-10.privateemail.com (localhost [127.0.0.1]) by mta-10.privateemail.com (Postfix) with ESMTP id 3D836180004E; Fri, 20 Oct 2023 14:42:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=twdb.moe; s=default; t=1697827347; bh=I0w/r01vKKY6kuH2yE2zEPQtASrKWEQx+eSBAD3x9Cc=; h=From:To:Cc:Subject:Date:From; b=JEfVZBlji07QI0m40QJOJyc5Ianx/10EEYL1DiKodXRYpun4nnshHLXjQynUn2MeG DrpngaJfN6Nufot68A9aFlwe9+x7JJRsrHHzsis6emrM/42/1xl3LMnVct9KB8VG6M 6rJtqL5RFTZpPlznW3PZoSTsfaoCozdM19EJYbuPmTnEj8SGfAQeJnAvrpjsdRy4hr o8FpZ7VBr4yyc0s7cQNAxTcpjBc+9nk1KCBLI6kLQHtGEIVcYH5EkHzdYqSZKIH1eQ GXZhk8nATQhdPOlnn/oN0pjNaxb/vtJ8q4GoFJQgO2BvwNSCIoPyHyCndI/CdgHmY7 Ml/mGNA7Zmn4g== Received: from localhost.localdomain (unknown [186.222.82.120]) by mta-10.privateemail.com (Postfix) with ESMTPA; Fri, 20 Oct 2023 14:42:24 -0400 (EDT) From: zamfofex Date: Fri, 20 Oct 2023 15:40:34 -0300 Message-ID: <7e8a3994730ad4b020d1f45ae65fac4ff3504b66.1697827234.git.zamfofex@twdb.moe> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.122.149; envelope-from=zamfofex@twdb.moe; helo=MTA-10-4.privateemail.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/games.scm (moonfish): New variable. --- gnu/packages/games.scm | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) base-commit: daeeaa221605726d8853b00261619ba039bd6db7 prerequisite-patch-id: fa910eaade316c0f90b10713e330b4a5094cf327 prerequisite-patch-id: 5c50cfc478757944497783ccb53f0bbdaaacedfc prerequisite-patch-id: 1f0d9d1c7ae75a37170f7a6e3e4e6c3432c49981 prerequisite-patch-id: 17e3c302bf595929a92e1a4ef3be2af6686af253 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")