summaryrefslogtreecommitdiff
path: root/gnu/packages/lua.scm
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@zancanaro.id.au>2026-06-09 22:11:12 +1000
committerNguyễn Gia Phong <cnx@loang.net>2026-06-17 22:03:37 +0900
commitf0719434f2b5da8a42847f99528a8dbec50d3ac1 (patch)
tree24b2a427999888932440dadc77246e472b0db0f8 /gnu/packages/lua.scm
parent59e08f98149500118cc29d29d65a96e4785b9619 (diff)
gnu: lua-lgi: Define variants with package rewrites.
* gnu/packages/lua.scm (make-lua-lgi): Remove procedure. (lua-lgi): Convert to direct package definition. (lua5.3-lgi, lua5.2-lgi, lua5.1-lgi): Define as rewrite of lua-lgi. Merges: https://codeberg.org/guix/guix/pulls/9183 Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages/lua.scm')
-rw-r--r--gnu/packages/lua.scm18
1 files changed, 7 insertions, 11 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index a0ac039d96f..1345617d5f3 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -1109,9 +1109,9 @@ in a set of Lua source files and produces a set of XHTML pages
1109describing the commented declarations and functions.") 1109describing the commented declarations and functions.")
1110 (license license:expat))) 1110 (license license:expat)))
1111 1111
1112(define (make-lua-lgi name lua) 1112(define-public lua-lgi
1113 (package 1113 (package
1114 (name name) 1114 (name "lua-lgi")
1115 (version "0.9.2") 1115 (version "0.9.2")
1116 (source 1116 (source
1117 (origin 1117 (origin
@@ -1145,7 +1145,7 @@ describing the commented declarations and functions.")
1145 (("LUA_VERSION=5.1") 1145 (("LUA_VERSION=5.1")
1146 (format #f 1146 (format #f
1147 "LUA_VERSION=~a" 1147 "LUA_VERSION=~a"
1148 ,(version-major+minor (package-version lua))))) 1148 ,(this-lua-version))))
1149 #t)) 1149 #t))
1150 (add-before 'check 'skip-test-gtk 1150 (add-before 'check 'skip-test-gtk
1151 (lambda _ 1151 (lambda _
@@ -1186,14 +1186,10 @@ libraries. It allows using GObject-based libraries directly from Lua.
1186Notable examples are GTK+, GStreamer and Webkit.") 1186Notable examples are GTK+, GStreamer and Webkit.")
1187 (license license:expat))) 1187 (license license:expat)))
1188 1188
1189(define-public lua-lgi 1189(define-public-lua-variants lua-lgi
1190 (make-lua-lgi "lua-lgi" lua)) 1190 (lua-5.3 lua5.3-lgi)
1191 1191 (lua-5.2 lua5.2-lgi)
1192(define-public lua5.1-lgi 1192 (lua-5.1 lua5.1-lgi))
1193 (make-lua-lgi "lua5.1-lgi" lua-5.1))
1194
1195(define-public lua5.2-lgi
1196 (make-lua-lgi "lua5.2-lgi" lua-5.2))
1197 1193
1198(define (make-lua-lpeg name lua) 1194(define (make-lua-lpeg name lua)
1199 (package 1195 (package