@@ -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")