summaryrefslogtreecommitdiff
path: root/guix/build-system/minetest.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/build-system/minetest.scm')
-rw-r--r--guix/build-system/minetest.scm86
1 files changed, 4 insertions, 82 deletions
diff --git a/guix/build-system/minetest.scm b/guix/build-system/minetest.scm
index 9774c5882a..775e609177 100644
--- a/guix/build-system/minetest.scm
+++ b/guix/build-system/minetest.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2025 Liliana Marie Prikler <liliana.prikler@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -17,87 +18,8 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (guix build-system minetest)
- #:use-module (guix build-system copy)
- #:use-module (guix build-system gnu)
- #:use-module (guix build-system)
- #:use-module (guix utils)
+ #:use-module (guix build-system luanti)
+ #:use-module (guix deprecation)
#:export (minetest-mod-build-system))
-;;
-;; Build procedure for minetest mods. This is implemented as an extension
-;; of ‘copy-build-system’.
-;;
-;; Code:
-
-;; Lazily resolve the bindings to avoid circular dependencies.
-(define (default-optipng)
- ;; Lazily resolve the binding to avoid a circular dependency.
- (module-ref (resolve-interface '(gnu packages image)) 'optipng))
-
-(define (default-minetest)
- (module-ref (resolve-interface '(gnu packages minetest)) 'minetest))
-
-(define (default-minetest-game)
- (module-ref (resolve-interface '(gnu packages minetest)) 'minetest-game))
-
-(define (default-xvfb-run)
- (module-ref (resolve-interface '(gnu packages xorg)) 'xvfb-run))
-
-(define %minetest-build-system-modules
- ;; Build-side modules imported by default.
- `((guix build minetest-build-system)
- ,@%copy-build-system-modules))
-
-(define %default-modules
- ;; Modules in scope in the build-side environment.
- '((guix build gnu-build-system)
- (guix build minetest-build-system)
- (guix build utils)))
-
-(define (standard-minetest-packages)
- "Return the list of (NAME PACKAGE OUTPUT) or (NAME PACKAGE) tuples of
-standard packages used as implicit inputs of the Minetest build system."
- `(("xvfb-run" ,(default-xvfb-run))
- ("optipng" ,(default-optipng))
- ("minetest" ,(default-minetest))
- ("minetest-game" ,(default-minetest-game))
- ,@(filter (lambda (input)
- (member (car input)
- '("libc" "tar" "gzip" "bzip2" "xz" "locales")))
- (standard-packages))))
-
-(define* (lower-mod name #:key (implicit-inputs? #t) #:allow-other-keys
- #:rest arguments)
- (define lower (build-system-lower gnu-build-system))
- (apply lower
- name
- (substitute-keyword-arguments arguments
- ;; minetest-mod-build-system adds implicit inputs by itself,
- ;; so don't let gnu-build-system add its own implicit inputs
- ;; as well.
- ((#:implicit-inputs? implicit-inputs? #t)
- #f)
- ((#:implicit-cross-inputs? implicit-cross-inputs? #t)
- #f)
- ((#:imported-modules imported-modules %minetest-build-system-modules)
- imported-modules)
- ((#:modules modules %default-modules)
- modules)
- ((#:phases phases '%standard-phases)
- phases)
- ;; Ensure nothing sneaks into the closure.
- ((#:allowed-references allowed-references '())
- allowed-references)
- ;; Add the implicit inputs.
- ((#:native-inputs native-inputs '())
- (if implicit-inputs?
- (append native-inputs (standard-minetest-packages))
- native-inputs)))))
-
-(define minetest-mod-build-system
- (build-system
- (name 'minetest-mod)
- (description "The build system for minetest mods")
- (lower lower-mod)))
-
-;;; minetest.scm ends here
+(define-deprecated/alias minetest-mod-build-system luanti-mod-build-system)