gnu: Add minetest-server.
* gnu/packages/minetest.scm (minetest-server): New variable. Change-Id: I1125888b2944acc4063a19db4c602d33286a7e14 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>master
parent
da14567354
commit
bcc9cd1aae
|
@ -44,6 +44,7 @@
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix utils)
|
||||||
#:use-module (guix build-system cmake)
|
#:use-module (guix build-system cmake)
|
||||||
#:use-module (guix build-system copy)
|
#:use-module (guix build-system copy)
|
||||||
#:use-module (guix build-system minetest)
|
#:use-module (guix build-system minetest)
|
||||||
|
@ -154,6 +155,41 @@ in different ways.")
|
||||||
(home-page "https://www.minetest.net/")
|
(home-page "https://www.minetest.net/")
|
||||||
(license license:lgpl2.1+)))
|
(license license:lgpl2.1+)))
|
||||||
|
|
||||||
|
(define-public minetest-server
|
||||||
|
(package
|
||||||
|
(inherit minetest)
|
||||||
|
(name "minetest-server")
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments minetest)
|
||||||
|
((#:configure-flags configure-flags)
|
||||||
|
#~(cons* "-DBUILD_CLIENT=FALSE"
|
||||||
|
"-DBUILD_SERVER=TRUE"
|
||||||
|
#$configure-flags))
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(setenv "HOME" "/tmp")
|
||||||
|
(invoke "src/minetestserver" "--run-unittests"))))))))
|
||||||
|
(inputs
|
||||||
|
(modify-inputs (package-inputs minetest)
|
||||||
|
(delete "libjpeg-turbo"
|
||||||
|
"libpng"
|
||||||
|
"libogg"
|
||||||
|
"libvorbis"
|
||||||
|
"libxxf86vm"
|
||||||
|
"mesa"
|
||||||
|
"openal")))
|
||||||
|
(synopsis "Infinite-world block sandbox game (server)")
|
||||||
|
(description
|
||||||
|
"Minetest is a sandbox construction game. Players can create and destroy
|
||||||
|
various types of blocks in a three-dimensional open world. This allows
|
||||||
|
forming structures in every possible creation, on multiplayer servers or as a
|
||||||
|
single player. Mods and texture packs allow players to personalize the game
|
||||||
|
in different ways. This package provides @command{minetestserver} to run a
|
||||||
|
Minetest server.")))
|
||||||
|
|
||||||
(define minetest-data
|
(define minetest-data
|
||||||
(package
|
(package
|
||||||
(name "minetest-data")
|
(name "minetest-data")
|
||||||
|
|
Reference in New Issue