diff options
| author | Carlo Zancanaro <carlo@zancanaro.id.au> | 2026-06-09 22:19:04 +1000 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-17 22:04:55 +0900 |
| commit | 20fccdd23227e6a3b952bc0dc2410b7edda2dad1 (patch) | |
| tree | 7ae2316da4381b6ec1f1ad5cc5ba6551d671af7b /gnu/packages/lua.scm | |
| parent | 27b4a0ff485c127a14ca2b49470c7a14101f73b9 (diff) | |
gnu: lua-bitop: Define variants with package rewrites.
* gnu/packages/lua.scm (make-lua-bitop): Remove procedure.
(lua-bitop): Convert to direct package definition.
(lua5.2-bitop, lua5.1-bitop): Define as rewrite of lua-bitop.
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.scm | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index e08875a9cdb..bcc0e6c61f0 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -1290,10 +1290,10 @@ Grammars (PEGs).") | |||
| 1290 | (lua-5.2 lua5.2-luv) | 1290 | (lua-5.2 lua5.2-luv) |
| 1291 | (lua-5.1 lua5.1-luv)) | 1291 | (lua-5.1 lua5.1-luv)) |
| 1292 | 1292 | ||
| 1293 | ;; Lua 5.3 is not supported. | 1293 | ;; Lua 5.3 is not supported, so this package is not exported. |
| 1294 | (define (make-lua-bitop name lua) | 1294 | (define lua-bitop |
| 1295 | (package | 1295 | (package |
| 1296 | (name name) | 1296 | (name "lua-bitop") |
| 1297 | (version "1.0.2") | 1297 | (version "1.0.2") |
| 1298 | (source (origin | 1298 | (source (origin |
| 1299 | (method url-fetch) | 1299 | (method url-fetch) |
| @@ -1310,7 +1310,7 @@ Grammars (PEGs).") | |||
| 1310 | (string-append "INSTALLPATH=printf " | 1310 | (string-append "INSTALLPATH=printf " |
| 1311 | (assoc-ref %outputs "out") | 1311 | (assoc-ref %outputs "out") |
| 1312 | "/lib/lua/" | 1312 | "/lib/lua/" |
| 1313 | ,(version-major+minor (package-version lua)) | 1313 | ,(this-lua-version) |
| 1314 | "/bit/bit.so")) | 1314 | "/bit/bit.so")) |
| 1315 | #:phases | 1315 | #:phases |
| 1316 | (modify-phases %standard-phases | 1316 | (modify-phases %standard-phases |
| @@ -1323,11 +1323,9 @@ Grammars (PEGs).") | |||
| 1323 | on numbers.") | 1323 | on numbers.") |
| 1324 | (license license:expat))) | 1324 | (license license:expat))) |
| 1325 | 1325 | ||
| 1326 | (define-public lua5.2-bitop | 1326 | (define-public-lua-variants lua-bitop |
| 1327 | (make-lua-bitop "lua5.2-bitop" lua-5.2)) | 1327 | (lua-5.2 lua5.2-bitop) |
| 1328 | 1328 | (lua-5.1 lua5.1-bitop)) | |
| 1329 | (define-public lua5.1-bitop | ||
| 1330 | (make-lua-bitop "lua5.1-bitop" lua-5.1)) | ||
| 1331 | 1329 | ||
| 1332 | (define (make-lua-djot name lua) | 1330 | (define (make-lua-djot name lua) |
| 1333 | (package | 1331 | (package |
