* [bug#70635] [PATCH] gnu: Add hexahop.
@ 2024-04-28 21:10 Sébastien Lerique
2024-04-29 0:46 ` bug#70635: " 宋文武 via Guix-patches via
0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Lerique @ 2024-04-28 21:10 UTC (permalink / raw)
To: 70635
Cc: Sébastien Lerique, Adam Faiz, Liliana Marie Prikler,
宋文武
* gnu/packages/games.scm (hexahop): New variable.
Change-Id: Id7a998d18c391af8d9722d2e637988ca019db304
---
gnu/packages/games.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 57e6c23f41..8646b195f6 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -81,6 +81,7 @@
;;; Copyright © 2023, 2024 gemmaro <gemmaro.dev@gmail.com>
;;; Copyright © 2023 Wilko Meyer <w@wmeyer.eu>
;;; Copyright © 2024 Vagrant Cascadian <vagrant@debian.org>
+;;; Copyright © 2024 Sébastien Lerique <sl@eauchat.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -241,6 +242,41 @@ (define-module (gnu packages games)
#:use-module ((srfi srfi-1) #:hide (zip))
#:use-module (srfi srfi-26))
+(define-public hexahop
+ (package
+ (name "hexahop")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ ;; FIXME: the "mirror://" url leads to
+ ;; https://web.archive.org/web/.../https://sourceforge.net/create/
+ ;; instead of .../hexahop/1.1.0/hex-a-hop-1.1.0.tar.gz or similar.
+ (uri (string-append "https://download.sourceforge.net/project/hexahop/"
+ version "/hex-a-hop-" version ".tar.gz"))
+ (sha256
+ (base32 "1mm069wpwc8nrrzfn2f64vh550634xlfws64bfmhqhx86vcikgw0"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'set-paths 'set-sdl'paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "CPATH"
+ (string-append
+ (search-input-directory inputs "/include/SDL")
+ ":" (or (getenv "CPATH") ""))))))))
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list (sdl-union (list sdl sdl-mixer sdl-ttf))))
+ (home-page "https://sourceforge.net/projects/hexahop/")
+ (synopsis "Puzzle game navigating paths over hexagons")
+ (description
+ "Hex-a-hop is a puzzle game in which a girl has to destroy green hexagons
+by stepping on them.")
+ (license license:gpl2+)))
+
(define-public abe
(package
(name "abe")
base-commit: 4178eaf3b2eeea8f6c2e49b1d65cd60a1663c4a9
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#70635: [PATCH] gnu: Add hexahop.
2024-04-28 21:10 [bug#70635] [PATCH] gnu: Add hexahop Sébastien Lerique
@ 2024-04-29 0:46 ` 宋文武 via Guix-patches via
0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 via Guix-patches via @ 2024-04-29 0:46 UTC (permalink / raw)
To: Sébastien Lerique; +Cc: 70635-done, Liliana Marie Prikler, Adam Faiz
Sébastien Lerique <sl@eauchat.org> writes:
> * gnu/packages/games.scm (hexahop): New variable.
>
> Change-Id: Id7a998d18c391af8d9722d2e637988ca019db304
Pushed to master as commit f1bcbdbde7, with changes:
- Use "mirror://sourceforge" for uri.
- Use "--with-sdl-prefix".
Thank you!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-29 0:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-28 21:10 [bug#70635] [PATCH] gnu: Add hexahop Sébastien Lerique
2024-04-29 0:46 ` bug#70635: " 宋文武 via Guix-patches via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.