diff options
| author | Carlo Zancanaro <carlo@zancanaro.id.au> | 2026-06-09 22:17:09 +1000 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-17 22:04:25 +0900 |
| commit | 27b4a0ff485c127a14ca2b49470c7a14101f73b9 (patch) | |
| tree | c6a437e5ef14d8cffc787d7398e3dd3f40a92470 /gnu/packages | |
| parent | a99daadaa722c6945be3bab8c38ceaa3f9a3eff0 (diff) | |
gnu: lua-luv: Define variants with package rewrites.
* gnu/packages/lua.scm (make-lua-luv): Remove procedure.
(lua-luv): Convert to direct package definition.
(lua5.3-luv, lua5.2-luv, lua5.1-luv): Define as rewrite of lua-luv.
Merges: https://codeberg.org/guix/guix/pulls/9183
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/lua.scm | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index f0a05019aa9..e08875a9cdb 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -1232,9 +1232,9 @@ Grammars (PEGs).") | |||
| 1232 | (lua-5.2 lua5.2-lpeg) | 1232 | (lua-5.2 lua5.2-lpeg) |
| 1233 | (lua-5.1 lua5.1-lpeg)) | 1233 | (lua-5.1 lua5.1-lpeg)) |
| 1234 | 1234 | ||
| 1235 | (define (make-lua-luv name lua) | 1235 | (define-public lua-luv |
| 1236 | (package | 1236 | (package |
| 1237 | (name name) | 1237 | (name "lua-luv") |
| 1238 | (version "1.52.1-0") | 1238 | (version "1.52.1-0") |
| 1239 | (source (origin | 1239 | (source (origin |
| 1240 | ;; The release tarball includes the sources of libuv but does | 1240 | ;; The release tarball includes the sources of libuv but does |
| @@ -1285,14 +1285,10 @@ Grammars (PEGs).") | |||
| 1285 | "This library makes libuv available to Lua scripts.") | 1285 | "This library makes libuv available to Lua scripts.") |
| 1286 | (license license:asl2.0))) | 1286 | (license license:asl2.0))) |
| 1287 | 1287 | ||
| 1288 | (define-public lua-luv | 1288 | (define-public-lua-variants lua-luv |
| 1289 | (make-lua-luv "lua-luv" lua)) | 1289 | (lua-5.3 lua5.3-luv) |
| 1290 | 1290 | (lua-5.2 lua5.2-luv) | |
| 1291 | (define-public lua5.1-luv | 1291 | (lua-5.1 lua5.1-luv)) |
| 1292 | (make-lua-luv "lua5.1-luv" lua-5.1)) | ||
| 1293 | |||
| 1294 | (define-public lua5.2-luv | ||
| 1295 | (make-lua-luv "lua5.2-luv" lua-5.2)) | ||
| 1296 | 1292 | ||
| 1297 | ;; Lua 5.3 is not supported. | 1293 | ;; Lua 5.3 is not supported. |
| 1298 | (define (make-lua-bitop name lua) | 1294 | (define (make-lua-bitop name lua) |
