From unknown Mon Sep 08 01:50:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#76012 <76012@debbugs.gnu.org> To: bug#76012 <76012@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add ghosthop. Reply-To: bug#76012 <76012@debbugs.gnu.org> Date: Mon, 08 Sep 2025 08:50:50 +0000 retitle 76012 [PATCH] gnu: Add ghosthop. reassign 76012 guix-patches submitter 76012 iyzsong@envs.net severity 76012 normal tag 76012 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 02 09:27:53 2025 Received: (at submit) by debbugs.gnu.org; 2 Feb 2025 14:27:53 +0000 Received: from localhost ([127.0.0.1]:33678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1teawy-0003NT-LC for submit@debbugs.gnu.org; Sun, 02 Feb 2025 09:27:53 -0500 Received: from lists.gnu.org ([2001:470:142::17]:42848) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1teawq-0003Mn-Ot for submit@debbugs.gnu.org; Sun, 02 Feb 2025 09:27:49 -0500 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 1teawf-0006jH-3b for guix-patches@gnu.org; Sun, 02 Feb 2025 09:27:33 -0500 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1teawd-0007rU-6P for guix-patches@gnu.org; Sun, 02 Feb 2025 09:27:32 -0500 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 6BDA738A3E6C; Sun, 2 Feb 2025 14:27:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HrOgThuAgHu9; Sun, 2 Feb 2025 14:27:24 +0000 (UTC) Received: from localhost (unknown [112.44.100.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sun, 2 Feb 2025 14:27:23 +0000 (UTC) Received: from localhost.localdomain (localhost.lan [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 72a34836; Sun, 2 Feb 2025 14:31:00 +0000 (UTC) From: iyzsong@envs.net To: guix-patches@gnu.org Subject: [PATCH] gnu: Add ghosthop. Date: Sun, 2 Feb 2025 22:30:56 +0800 Message-ID: <1f3d3ae66d44a521b302f339872933303826abe5.1738506579.git.iyzsong@member.fsf.org> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 X-Debbugs-Cc: Adam Faiz , Liliana Marie Prikler , 宋文武 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) From: 宋文武 * gnu/packages/games.scm (ghosthop): New variable. Change-Id: I45867f844517666cb123b1d05a140c0ae8528e79 --- gnu/packages/games.scm | 66 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 8255e0623b..4bb96c67c7 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -181,6 +181,7 @@ (define-module (gnu packages games) #:use-module (gnu packages libidn) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) + #:use-module (gnu packages lisp) #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages man) @@ -2176,6 +2177,71 @@ (define-public knightsgame ;; license. The whole package is released under GPLv3+. (license license:gpl3+))) +(define-public ghosthop + (let ((commit "9fefc22830ff8fde484452d7a249f4c54feec0fc") + (revision "1")) + (package + (name "ghosthop") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/gcmas/ghosthop.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "021awll73bgjk61r6y6cbqn0dpmki9jp627km7yhx5px15panslq")) + (modules '((guix build utils))) + (snippet '(delete-file-recursively "vendor")))) + (build-system copy-build-system) + (arguments + (list + #:install-plan + ;; 'ghosthop' load 'asset' and 'scm' from the current directory. + #~'(("ghosthop" "opt/ghosthop/") + ("asset" "opt/ghosthop/") + ("scm" "opt/ghosthop/")) + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'build + ;; Avoid its Makefile to build with system libraries. + (lambda* (#:key inputs #:allow-other-keys) + (with-output-to-file "rlbind.c" + (lambda () + (invoke "repl" "rlbind.scm"))) + (invoke #$(cc-for-target) + "-o" "ghosthop" + "-O3" "-lm" "-lraylib" + (search-input-file inputs "/share/s7/s7.c") + "rlbind.c" "src/init.c") + (invoke #$(strip-for-target) "ghosthop"))) + (add-after 'install 'install-launcher + ;; Create an launcher script for 'ghosthop'. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bindir (string-append out "/bin")) + (gamedir (string-append out "/opt/ghosthop")) + (launcher (string-append bindir "/ghosthop")) + (bash (search-input-file inputs "/bin/bash"))) + (mkdir (dirname launcher)) + (with-output-to-file launcher + (lambda () + (format #t "#!~a~%" bash) + (format #t "cd ~a~%" gamedir) + (format #t "exec -a ghosthop ~a~%" + (string-append gamedir "/ghosthop")))) + (chmod launcher #o755))))))) + (native-inputs (list s7)) + (inputs (list bash-minimal raylib)) + (home-page "https://gitlab.com/gcmas/ghosthop") + (synopsis "Puzzle game with colored rules") + (description "This is a small puzzle game made for the 2024 Spring Lisp +Game Jam. The objective is to reach the goal by assigning rules to colors.") + (license (list license:gpl3+ ;code and other assets + license:cc-by-sa3.0))))) ;music + (define-public gnome-2048 (package (name "gnome-2048") base-commit: b64d3168af697ceb2a96e7e2c62bcf418b8a586a -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 04 04:47:13 2025 Received: (at 76012-done) by debbugs.gnu.org; 4 Feb 2025 09:47:13 +0000 Received: from localhost ([127.0.0.1]:42699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfFWT-0002QY-4d for submit@debbugs.gnu.org; Tue, 04 Feb 2025 04:47:13 -0500 Received: from mail.envs.net ([5.199.136.28]:33206) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfFWR-0002QP-FG for 76012-done@debbugs.gnu.org; Tue, 04 Feb 2025 04:47:11 -0500 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id A68DF38A3EBD for <76012-done@debbugs.gnu.org>; Tue, 4 Feb 2025 09:47:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xgXHkRpQeHNd for <76012-done@debbugs.gnu.org>; Tue, 4 Feb 2025 09:47:09 +0000 (UTC) Received: from localhost (unknown [112.44.101.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA for <76012-done@debbugs.gnu.org>; Tue, 4 Feb 2025 09:47:08 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id b8af6178 for <76012-done@debbugs.gnu.org>; Tue, 4 Feb 2025 09:50:53 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: 76012-done@debbugs.gnu.org Subject: Re: [bug#76012] [PATCH] gnu: Add ghosthop. In-Reply-To: <1f3d3ae66d44a521b302f339872933303826abe5.1738506579.git.iyzsong@member.fsf.org> (iyzsong@envs.net's message of "Sun, 2 Feb 2025 22:30:56 +0800") References: <1f3d3ae66d44a521b302f339872933303826abe5.1738506579.git.iyzsong@member.fsf.org> Date: Tue, 04 Feb 2025 17:50:53 +0800 Message-ID: <878qqmqbr6.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76012-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pushed to master, close. From unknown Mon Sep 08 01:50:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 Mar 2025 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator