diff options
| author | Carlo Zancanaro <carlo@zancanaro.id.au> | 2026-06-09 22:09:04 +1000 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-17 22:03:14 +0900 |
| commit | 59e08f98149500118cc29d29d65a96e4785b9619 (patch) | |
| tree | 5635e97104387a05387e47c4c5d43bf80f69ef1e /gnu/packages/lua.scm | |
| parent | eedb267f7acc41c36875effcfba2e336b0b239cc (diff) | |
gnu: lua-cqueues: Define variants with package rewrites.
* gnu/packages/lua.scm (make-lua-cqueues): Remove procedure.
(lua-cqueues): Convert to direct package definition.
(lua5.3-cqueues, lua5.2-cqueues, lua5.1-cqueues):
Define as rewrite of lua-cqueues.
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 | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 3a65f0d5246..a0ac039d96f 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -918,9 +918,9 @@ between the peers.") | |||
| 918 | (lua-5.2 lua5.2-sec) | 918 | (lua-5.2 lua5.2-sec) |
| 919 | (lua-5.1 lua5.1-sec)) | 919 | (lua-5.1 lua5.1-sec)) |
| 920 | 920 | ||
| 921 | (define (make-lua-cqueues name lua lua-ossl) | 921 | (define-public lua-cqueues |
| 922 | (package | 922 | (package |
| 923 | (name name) | 923 | (name "lua-cqueues") |
| 924 | (version "20200726") | 924 | (version "20200726") |
| 925 | (source (origin | 925 | (source (origin |
| 926 | (method git-fetch) | 926 | (method git-fetch) |
| @@ -938,7 +938,7 @@ between the peers.") | |||
| 938 | (guix build utils) | 938 | (guix build utils) |
| 939 | (ice-9 string-fun)) | 939 | (ice-9 string-fun)) |
| 940 | #:make-flags | 940 | #:make-flags |
| 941 | #~(let ((lua-api-version #$(version-major+minor (package-version lua)))) | 941 | #~(let ((lua-api-version #$(this-lua-version))) |
| 942 | (list (string-append "CC=" #$(cc-for-target)) | 942 | (list (string-append "CC=" #$(cc-for-target)) |
| 943 | (string-append "LUA_APIS=" lua-api-version))) | 943 | (string-append "LUA_APIS=" lua-api-version))) |
| 944 | #:phases | 944 | #:phases |
| @@ -954,7 +954,7 @@ between the peers.") | |||
| 954 | (add-after 'install 'check | 954 | (add-after 'install 'check |
| 955 | (lambda* (#:key make-flags #:allow-other-keys) | 955 | (lambda* (#:key make-flags #:allow-other-keys) |
| 956 | (let* | 956 | (let* |
| 957 | ((lua-version #$(version-major+minor (package-version lua))) | 957 | ((lua-version #$(this-lua-version)) |
| 958 | (env-suffix (if (equal? lua-version "5.1") | 958 | (env-suffix (if (equal? lua-version "5.1") |
| 959 | "" | 959 | "" |
| 960 | (string-append | 960 | (string-append |
| @@ -970,11 +970,11 @@ between the peers.") | |||
| 970 | ;; precedence over the generic "LUA_CPATH" and "LUA_PATH" | 970 | ;; precedence over the generic "LUA_CPATH" and "LUA_PATH" |
| 971 | (setenv (string-append "LUA_CPATH" env-suffix) | 971 | (setenv (string-append "LUA_CPATH" env-suffix) |
| 972 | (string-append | 972 | (string-append |
| 973 | (string-join (map lua-cpath (list #$output #$lua-ossl)) ";") | 973 | (string-join (map lua-cpath (list #$output #$(this-lua-input "lua-ossl"))) ";") |
| 974 | ";;")) | 974 | ";;")) |
| 975 | (setenv (string-append "LUA_PATH" env-suffix) | 975 | (setenv (string-append "LUA_PATH" env-suffix) |
| 976 | (string-append | 976 | (string-append |
| 977 | (string-join (map lua-path (list #$output #$lua-ossl)) ";") | 977 | (string-join (map lua-path (list #$output #$(this-lua-input "lua-ossl"))) ";") |
| 978 | ";;")) | 978 | ";;")) |
| 979 | 979 | ||
| 980 | ;; Skip regression tests we expect to fail | 980 | ;; Skip regression tests we expect to fail |
| @@ -1015,14 +1015,10 @@ that operates through the yielding and resumption of coroutines. It is designed | |||
| 1015 | to be non-intrusive, composable, and embeddable within existing applications.") | 1015 | to be non-intrusive, composable, and embeddable within existing applications.") |
| 1016 | (license license:expat))) | 1016 | (license license:expat))) |
| 1017 | 1017 | ||
| 1018 | (define-public lua-cqueues | 1018 | (define-public-lua-variants lua-cqueues |
| 1019 | (make-lua-cqueues "lua-cqueues" lua lua-ossl)) | 1019 | (lua-5.3 lua5.3-cqueues) |
| 1020 | 1020 | (lua-5.2 lua5.2-cqueues) | |
| 1021 | (define-public lua5.1-cqueues | 1021 | (lua-5.1 lua5.1-cqueues)) |
| 1022 | (make-lua-cqueues "lua5.1-cqueues" lua-5.1 lua5.1-ossl)) | ||
| 1023 | |||
| 1024 | (define-public lua5.2-cqueues | ||
| 1025 | (make-lua-cqueues "lua5.2-cqueues" lua-5.2 lua5.2-ossl)) | ||
| 1026 | 1022 | ||
| 1027 | (define-public lua-penlight | 1023 | (define-public lua-penlight |
| 1028 | (package | 1024 | (package |
