From 741fcc76e7c3042e8ba637619da72a69a3ab3948 Mon Sep 17 00:00:00 2001 From: Jan Wielkiewicz Date: Sat, 14 Mar 2026 19:56:37 +0100 Subject: [PATCH] =?UTF-8?q?gnu:=20luanti:=20Add=20=E2=80=9Cdevtest?= =?UTF-8?q?=E2=80=9D=20output.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/luanti.scm (luanti) [#:configure-flags]: Add “-DINSTALL_DEVTEST=TRUE”. [#:phases]: Use installed devtest for LUANTI_GAME_PATH. : New phase. [outputs]: Add “devtest”. [properties]: Add output synopsis for “devtest”. Change-Id: If4e4bb938d602f9e668f776dd6d4dfbdda90f9b7 Signed-off-by: Liliana Marie Prikler --- gnu/packages/luanti.scm | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/gnu/packages/luanti.scm b/gnu/packages/luanti.scm index bf5d96ece6..c10966f941 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