From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +As9D23KMmUrogAAauVa8A:P1 (envelope-from ) for ; Fri, 20 Oct 2023 20:43:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +As9D23KMmUrogAAauVa8A (envelope-from ) for ; Fri, 20 Oct 2023 20:43:57 +0200 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 6575B42BF1 for ; Fri, 20 Oct 2023 20:43:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=JEfVZBlj; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697827437; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QuiTVK33vx9kuwgbvAO2q70F7wkfmaLTas1jDu+yZuE=; b=Rnso6goCuA7efA9JUhgfphmomh6359g04tI9K92CgEqTwykGvesgGlJrisNohQi/MwPb6I k7fhYEDLL1ZApJJQuD2pA9rQnLGGAECN4oGep1j6TzhnGqtEHDbjM2tPZqQTObRL0b64LQ 5y+9x1xYExnsOf9HNrl4/72drJMCfVhKHZ7MUYXD8LZWxwO5FgQqEQ2gxEkXnX+Yoapuvv u8j9LtOlcPPcp6QNo547QuOwFrEfmJ9S43z3sOJklZSvrSgrMqjMTJeoIKfsfsoDCSwmXR hNPyHgd/vidjLh8rsTorzpE1fEPn8W9L0k6FLAiAfQldCXpQS+dNvKe4YL2GvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697827437; a=rsa-sha256; cv=none; b=Hdxoi0JPJjYNu+ZiUqzcqKKlJSkPFdxhDV+cQcJqGf9Z9vWjA5BJ4qmvqurku3d1eaeytq lmRQQtZH0J02Vxja/WKcEkuep0RGE5RrQl0+8cG3+ZJfr9Jj7QiEYpwAo48fTQPP28/xAb qnAYtsZUKP49Qhz4CDC2rqMEpetJySalJXQ8hdm/qiwVWEYVld55Zg8b4yHVuEiLL/IX8I ITwSnzkhnPxWwvm+WejmrpTtx5XJiW5KiXoDzrO6AlO8QhkIHg/SFmYy0rIpLy7zPXHK9f qgMOnoW8jusY8xMRFuiSMDCPox7XR5L29P74mtcnrwE2KKU3wQe+L6h3MAGaLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=JEfVZBlj; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none 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?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -3.14 X-Migadu-Queue-Id: 6575B42BF1 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.14 X-TUID: Fat55DikT7qL * 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