diff options
| author | Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl> | 2026-03-14 19:56:37 +0100 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-03-22 09:43:41 +0100 |
| commit | 741fcc76e7c3042e8ba637619da72a69a3ab3948 (patch) | |
| tree | d90d9b710929251bc77fe07dc1304c9ca005ad2a /gnu/packages | |
| parent | 3432415d91c5718ed4ed5a7dede56ba4bd8901ee (diff) | |
gnu: luanti: Add “devtest” output.
* gnu/packages/luanti.scm (luanti)
[#:configure-flags]: Add “-DINSTALL_DEVTEST=TRUE”.
[#:phases]<check>: Use installed devtest for LUANTI_GAME_PATH.
<move-devtest>: New phase.
[outputs]: Add “devtest”.
[properties]: Add output synopsis for “devtest”.
Change-Id: If4e4bb938d602f9e668f776dd6d4dfbdda90f9b7
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/luanti.scm | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gnu/packages/luanti.scm b/gnu/packages/luanti.scm index bf5d96ece62..c10966f9413 100644 --- a/gnu/packages/luanti.scm +++ b/gnu/packages/luanti.scm @@ -101,7 +101,8 @@ #:configure-flags #~(list "-DBUILD_DOCUMENTATION=OFF" ;not installed anyway "-DENABLE_LTO=ON" - "-DENABLE_UPDATE_CHECKER=FALSE") + "-DENABLE_UPDATE_CHECKER=FALSE" + "-DINSTALL_DEVTEST=TRUE") #:phases #~(modify-phases %standard-phases (delete 'check) @@ -112,9 +113,15 @@ (when tests? (setenv "HOME" "/tmp") (setenv "LUANTI_GAME_PATH" - (string-append (getcwd) "/../source/games")) + (string-append #$output "/share/luanti/games")) (invoke "../source/bin/luanti" "--run-unittests") - (invoke "../source/util/test_multiplayer.sh"))))))) + (invoke "../source/util/test_multiplayer.sh")))) + (add-after 'check 'move-devtest + (lambda _ + (let ((source (string-append #$output "/share/luanti/games/devtest")) + (target (string-append #$output:devtest "/share/luanti/games/devtest"))) + (mkdir-p (dirname target)) + (rename-file source target))))))) (native-search-paths (list (search-path-specification (variable "LUANTI_GAME_PATH") @@ -140,7 +147,7 @@ sdl2 sqlite `(,zstd "lib"))) - (outputs '("out" "debug")) + (outputs '("out" "debug" "devtest")) (synopsis "Voxel game engine") (description "Luanti is a voxel game engine that supports modding and game creation @@ -150,7 +157,8 @@ platform, users need to install games themselves (for example, @code{luanti-minetest-game}), either through Guix, the built-in interface or other sources.") (home-page "https://www.luanti.org/") - (license license:lgpl2.1+))) + (license license:lgpl2.1+) + (properties `((output-synopsis "devtest" "Developer test game"))))) (define-public luanti-server (package |
