summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@zancanaro.id.au>2026-06-09 00:13:47 +1000
committerNguyễn Gia Phong <cnx@loang.net>2026-06-17 22:01:26 +0900
commit358d14be700af640408fecba895f89023b03c992 (patch)
tree362b8b766245d9b0f0491a7cbf8a8c3161eab4e2
parent19dbaf78b8563d6bfb40cfc89aebc0239de22eca (diff)
gnu: lua-filesystem: Define variants with package rewrites.
* gnu/packages/lua.scm (make-lua-filesystem): Remove procedure. (lua-filesystem): Convert to direct package definition. (lua5.5-filesystem, lua5.4-filesystem, lua5.3-filesystem) (lua5.2-filesystem, lua5.1-filesystem): Define as rewrite of lua-filesystem. Merges: https://codeberg.org/guix/guix/pulls/9183 Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
-rw-r--r--gnu/packages/lua.scm22
1 files changed, 8 insertions, 14 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 59bb6a41b24..cdfeacaa32b 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -537,9 +537,9 @@ handy.")
537 (lua-5.2 lua5.2-socket) 537 (lua-5.2 lua5.2-socket)
538 (lua-5.1 lua5.1-socket)) 538 (lua-5.1 lua5.1-socket))
539 539
540(define (make-lua-filesystem name lua) 540(define-public lua-filesystem
541 (package 541 (package
542 (name name) 542 (name "lua-filesystem")
543 (version "1.9.0") 543 (version "1.9.0")
544 (source (origin 544 (source (origin
545 (method git-fetch) 545 (method git-fetch)
@@ -556,7 +556,7 @@ handy.")
556 (arguments 556 (arguments
557 `(#:make-flags 557 `(#:make-flags
558 (let ((out (assoc-ref %outputs "out")) 558 (let ((out (assoc-ref %outputs "out"))
559 (lua-version ,(version-major+minor (package-version lua)))) 559 (lua-version ,(this-lua-version)))
560 (list (string-append "PREFIX=" out) 560 (list (string-append "PREFIX=" out)
561 (string-append "LUA_LIBDIR=" out "/lib/lua/" lua-version))) 561 (string-append "LUA_LIBDIR=" out "/lib/lua/" lua-version)))
562 #:test-target "test" 562 #:test-target "test"
@@ -573,17 +573,11 @@ distribution. LuaFileSystem offers a portable way to access the underlying
573directory structure and file attributes.") 573directory structure and file attributes.")
574 (license (package-license lua-5.1)))) 574 (license (package-license lua-5.1))))
575 575
576(define-public lua-filesystem 576(define-public-lua-variants lua-filesystem
577 (make-lua-filesystem "lua-filesystem" lua)) 577 (lua-5.4 lua5.4-filesystem)
578 578 (lua-5.3 lua5.3-filesystem)
579(define-public lua5.1-filesystem 579 (lua-5.2 lua5.2-filesystem)
580 (make-lua-filesystem "lua5.1-filesystem" lua-5.1)) 580 (lua-5.1 lua5.1-filesystem))
581
582(define-public lua5.2-filesystem
583 (make-lua-filesystem "lua5.2-filesystem" lua-5.2))
584
585(define-public lua5.4-filesystem
586 (make-lua-filesystem "lua5.4-filesystem" lua-5.4))
587 581
588(define-public lua-bee 582(define-public lua-bee
589 ;; There are no releases; use the commit known to work with the packaged 583 ;; There are no releases; use the commit known to work with the packaged