summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Durán Domínguez <wurt@wurt.eu>2026-02-22 15:24:52 +0100
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-03-01 17:40:31 +0100
commitef4998f465670c7df823274dd575fdf3608253f5 (patch)
treefa51c3fa8f5fdc6735f20d8a0be08aed115485d9
parent7c887aaeb93ed1b9fee1ae8012ae37ff2ffc1a8e (diff)
gnu: solarus: Improve style.
* gnu/packages/games.scm (solarus): Use G-expressions, fix indentation. [arguments]: Use G-expressions; reindent. [native-inputs]: Reindent. [inputs]: Refactor to modern style. Fixes: guix/guix#6231 Change-Id: Ic648261523c951d0d91bbea67568114fd5741bad Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/games.scm61
1 files changed, 30 insertions, 31 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 6d1935f7169..cf211a041f4 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3518,37 +3518,36 @@ corruption… You hope luck will be on your side!
(base32 "0ny9dgqphjv2l39rff2621hnrzpf8qin8vmnv7jdz20azjk4m8id"))))
(build-system cmake-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'disable-failing-tests
- ;; The following tests fail reporting a missing "/dev/dri"
- ;; file.
- (lambda _
- (substitute* "tests/cmake/AddTestMaps.cmake"
- ((".*1200_create_shader_from_source.*" all)
- (string-append "#" all))
- ((".*1210_shader_scaling_factor.*" all)
- (string-append "#" all)))
- #t))
- (add-before 'check 'set-home
- ;; Tests fail without setting the following environment
- ;; variables.
- (lambda _
- (setenv "HOME" (getcwd))
- (setenv "XDG_RUNTIME_DIR" (getcwd))
- #t)))))
- (native-inputs
- (list pkg-config qttools-5))
- (inputs
- `(("glm" ,glm)
- ("libmodplug" ,libmodplug)
- ("libogg" ,libogg)
- ("libvorbis" ,libvorbis)
- ("luajit" ,luajit)
- ("openal" ,openal)
- ("physfs" ,physfs)
- ("qtbase" ,qtbase-5)
- ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ ;; The following tests fail reporting a missing "/dev/dri"
+ ;; file.
+ (lambda _
+ (substitute* "tests/cmake/AddTestMaps.cmake"
+ ((".*1200_create_shader_from_source.*" all)
+ (string-append "#" all))
+ ((".*1210_shader_scaling_factor.*" all)
+ (string-append "#" all)))))
+ (add-before 'check 'set-home
+ ;; Tests fail without setting the following environment
+ ;; variables.
+ (lambda _
+ (setenv "HOME" (getcwd))
+ (setenv "XDG_RUNTIME_DIR" (getcwd)))))))
+ (native-inputs (list pkg-config qttools-5))
+ (inputs (list glm
+ libmodplug
+ libogg
+ libvorbis
+ luajit
+ openal
+ physfs
+ qtbase-5
+ sdl2
+ sdl2-image
+ sdl2-ttf))
(home-page "https://www.solarus-games.org/")
(synopsis "Lightweight game engine for Action-RPGs")
(description