~ruther/guix-local

94579edc3fa4bd67ffe98c4170f391a2dd9b140a — Maxim Cournoyer a month ago 025d33b
gnu: Add luanti-mineclonia-csm.

* gnu/packages/luanti.scm (luanti-mineclonia-csm): New variable.

Change-Id: I0ad5f47cc38ac5a73578e4cd1a61edb61c378b68
1 files changed, 25 insertions(+), 0 deletions(-)

M gnu/packages/luanti.scm
M gnu/packages/luanti.scm => gnu/packages/luanti.scm +25 -0
@@ 503,6 503,31 @@ currently permits without resorting to hacks which are too heavyweight or
complicated to maintain.")
    (license license:gpl3+)))

(define-public luanti-mineclonia-csm
  (package/inherit luanti-mineclonia
    (name "luanti-mineclonia-csm")
    (arguments
     (substitute-keyword-arguments (package-arguments luanti-mineclonia)
       ((#:phases phases '%standard-phases)
        #~(modify-phases #$phases
            (add-after 'unpack 'enable-csm-support
              (lambda _
                ;; This makes it easy to benefit from client-side
                ;; scripting mods such as the mcl_localplayer mode that
                ;; can be used along the luanti-halon fork.
                (substitute* '("settingtypes.txt"
                               "mods/PLAYER/mcl_serverplayer/init.lua")
                  (("(mcl_enable_csm.*)false" _ mcl_enable_csm)
                   (string-append mcl_enable_csm "true")))))))))
    (synopsis "Unofficial Minecraft-like game for Luanti with CSM enabled")
    (description
     (string-append (package-description luanti-mineclonia)
                    "  This variant has CSM (client-side scripting)
 enabled, for use with the @code{luanti-halon} fork.  The CSM code makes it
possible to replicate more closely the physics of the original Minecraft game.
To use it, you need to add @code{enable_client_modding = true} to your
client's @file{~/.minetest/minetest.conf} configuration file."))))

(define-public luanti-voxelibre
  (package
    (name "luanti-voxelibre")