From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 EHGNHv8mM2UaRAEAG6o9tA:P1 (envelope-from ) for ; Sat, 21 Oct 2023 03:18:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EHGNHv8mM2UaRAEAG6o9tA (envelope-from ) for ; Sat, 21 Oct 2023 03:18:55 +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 1C8407241C for ; Sat, 21 Oct 2023 03:18:55 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=LsdB3PmP; 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=1697851135; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wvpOY0Nu7WYtjB694D63u1T4wB8eDZZTfsJ6FcElNXY=; b=N5IrH9oQG04gN4CZdlS5fQC85uu6Wyo2mmH3SSXCE0hPAfmo5ZoqET/B4uxCMy5fo7e9pu 7LPIFr++tNBj7gRDBOKS7rBz7cK/zI7FvldB4XZ6+06X7Xl+bD/k48sO+L0lQ1nJ/WboYJ G32WI2sj8n/H5r0ePATJqAu3RdtajdJfPw+BLUQ7hWsv+pGGi+tGq7f/CGTQbCY3ns820y MfrBUmh0mVz2hAZkE1oXyo+ADpLPZTGr3jvmfE+9DBtk0iILuAEd3pPPxOV4HiKZW8/r9e cgXnvUCaj+EM9yhJ+Pr4sYlggvvxJ5LWLIR2aTWm62JuYF5mr2qPEo8HgM5zjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697851135; a=rsa-sha256; cv=none; b=LyDP44QG/CkO3AkxY4G8f/l6eWwdOI7oHCUeHc7yGLG9o0ckdEQ/RJ9gXEwkUKU78nzjqk XvPp+VC7Bl9yGIii/FWxzAnjrnqqUqlnY1ctakId+qghxXGGzaakKq8fnMIMkdF5NP4lnf vnoKkAnGJBp1sSlS+h6ILC2LMN0NdowaQVG9ua8MYsWTOfHEMBF8NL5wTwYx6EBa9tdx/E C8PVehkFCMFOwd5vlZNw4FEsadSHqcN6iQ+g7wAclVhDGVyoGvIwFyl8Sk5WI6KCNYLRQq ipYAqcoZPoM08xkcL+WDI9n3zsMV0ycmySLhF7pKhLCwEHNvNLnkntBfMgVK4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=LsdB3PmP; 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 1qu0dS-00023P-Fu; Fri, 20 Oct 2023 21:18:38 -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 1qu0dQ-00022x-IK for guix-patches@gnu.org; Fri, 20 Oct 2023 21:18:36 -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 1qu0dQ-0006mu-9U for guix-patches@gnu.org; Fri, 20 Oct 2023 21:18:36 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qu0dq-0008Rf-4c; Fri, 20 Oct 2023 21:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66654] [PATCH v2] gnu: Add moonfish. References: <7e8a3994730ad4b020d1f45ae65fac4ff3504b66.1697827234.git.zamfofex@twdb.moe> In-Reply-To: <7e8a3994730ad4b020d1f45ae65fac4ff3504b66.1697827234.git.zamfofex@twdb.moe> Resent-From: zamfofex Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Sat, 21 Oct 2023 01:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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-Xcc: Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 66654-submit@debbugs.gnu.org id=B66654.169785110732417 (code B ref 66654); Sat, 21 Oct 2023 01:19:02 +0000 Received: (at 66654) by debbugs.gnu.org; 21 Oct 2023 01:18:27 +0000 Received: from localhost ([127.0.0.1]:41905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu0dD-0008Qg-15 for submit@debbugs.gnu.org; Fri, 20 Oct 2023 21:18:27 -0400 Received: from mta-08-4.privateemail.com ([198.54.122.147]:5626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu0d7-0008QP-8z for 66654@debbugs.gnu.org; Fri, 20 Oct 2023 21:18:21 -0400 Received: from mta-08.privateemail.com (localhost [127.0.0.1]) by mta-08.privateemail.com (Postfix) with ESMTP id 7C4AB18000E2; Fri, 20 Oct 2023 21:17:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=twdb.moe; s=default; t=1697851063; bh=RrCrLGIgOBlfz7Dt/6QcX2iSNxA4IFu9HvgQ/1OVnRs=; h=From:To:Cc:Subject:Date:From; b=LsdB3PmPaLmr0namYasi3gJVhdevUg8Dx8M1C+r6T/CgnWd8F+jk7chRkaLDPSfST gpffeEACrVIxoXaD0SF0bYr2kRoJJAGOKZTZzl8FP9D8ZXJc1St5pRsTzilDWpX8wH K0nzyPCfLlClZUf3lJBhERJ7SjNKElm+MEJlxLXm9XarJURs7qTCkx7mJo6jIhWZXu 34pK9hLKH1lcFfmrGAR6NHgtW0T5kUK8V35E3lExA1+8K3jdTIzZmmtrCR5TV9tR7T +y9qts/es/8lkU4PR+3t6LtFagOjnpMuluiDrAr5HPdYw7sq+tlNLKPR0wOu0Xg8ZF kECJ/E6jkh+kw== Received: from localhost.localdomain (unknown [186.222.82.120]) by mta-08.privateemail.com (Postfix) with ESMTPA; Fri, 20 Oct 2023 21:17:41 -0400 (EDT) From: zamfofex Date: Fri, 20 Oct 2023 22:17:28 -0300 Message-ID: <9dfee67d9a604025ab595767a71c3fd080d0eff3.1697851048.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 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: 1C8407241C X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.14 X-TUID: jB5o0SLpXYRZ * 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..97515abc10 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 "4f8829009e8c26e6a878261e0bc4c7e7617ef6b6") + (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 + "1ksg42x9cyn3pbfryy9raqb355k47cqcisascpy157c3cgdr2z60")) + (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: 17954419aa25bf947f3351d82a11dc2f5472acaa -- 2.41.0