diff options
author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-06-29 15:58:35 +0200 |
---|---|---|
committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-07-13 13:54:02 +0200 |
commit | 9a75c8ac135854f3380352b9dd3e653e6ff14614 (patch) | |
tree | d76c941e8ac0b88e15a6fcf2366c60f825cd2914 /guix | |
parent | abbdfbb775d31c5ccc4f11abcb3650d123e28cc2 (diff) |
gnu: luanti: Prefix search paths with LUANTI.
* gnu/packages/patches/luanti-paths.patch: New file.
* gnu/packages/luanti.scm (luanti)[source]: Use it.
[#:phases]<check>: Use LUANTI_GAME_PATH.
[native-search-paths]: Rename “MINETEST_GAME_PATH” to “LUANTI_GAME_PATH”.
Rename “MINETEST_MOD_PATH” to “LUANTI_MOD_PATH”.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* guix/build/luanti-build-system.scm (check): Use LUANTI_MOD_PATH.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/build/luanti-build-system.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/build/luanti-build-system.scm b/guix/build/luanti-build-system.scm index 212f84f16f..34b7bd0dcc 100644 --- a/guix/build/luanti-build-system.scm +++ b/guix/build/luanti-build-system.scm @@ -158,12 +158,12 @@ error. If NOT-FOUND is TRUE, call NOT-FOUND instead." (when tests? (mkdir "guix_testworld") ;; Add the mod to the mod search path, such that Luanti can find it. - (setenv "MINETEST_MOD_PATH" + (setenv "LUANTI_MOD_PATH" (list->search-path-as-string (cons (string-append (assoc-ref outputs "out") "/share/luanti/mods") (search-path-as-string->list - (or (getenv "MINETEST_MOD_PATH") ""))) + (or (getenv "LUANTI_MOD_PATH") ""))) ":")) (with-directory-excursion "guix_testworld" (setenv "HOME" (getcwd)) @@ -181,7 +181,7 @@ auth_backend = sqlite3 (lambda (mod) (format port "load_mod_~a = true~%" mod)) (all-mod-names (search-path-as-string->list - (getenv "MINETEST_MOD_PATH")))))) + (getenv "LUANTI_MOD_PATH")))))) (receive (port pid) ((@@ (guix build utils) open-pipe-with-stderr) "xvfb-run" "--" "luanti" "--info" "--world" "." "--go") |