diff options
| author | Carlo Zancanaro <carlo@zancanaro.id.au> | 2026-06-09 00:16:57 +1000 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-17 22:02:07 +0900 |
| commit | c970723e9f9f40eaab6f20f4284e2c118eff9262 (patch) | |
| tree | aa2e86a9093d452a3a201e0e6dd2a06a1220ae9c /gnu/packages | |
| parent | 358d14be700af640408fecba895f89023b03c992 (diff) | |
gnu: lua-ossl: Define variants with package rewrites.
* gnu/packages/lua.scm (make-lua-ossl): Remove procedure.
(lua-ossl): Convert to direct package definition.
(lua5.3-ossl, lua5.2-ossl, lua5.1-ossl):
Define as rewrite of lua-ossl.
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 | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index cdfeacaa32b..3e0f0ea1e5f 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -814,9 +814,9 @@ exec ~a --logpath=\"/tmp/runtime-$USER/lua-language-server/log\" \ | |||
| 814 | @end itemize") | 814 | @end itemize") |
| 815 | (license license:expat))) | 815 | (license license:expat))) |
| 816 | 816 | ||
| 817 | (define (make-lua-ossl name lua) | 817 | (define-public lua-ossl |
| 818 | (package | 818 | (package |
| 819 | (name name) | 819 | (name "lua-ossl") |
| 820 | (version "20220711") | 820 | (version "20220711") |
| 821 | (source (origin | 821 | (source (origin |
| 822 | (method git-fetch) | 822 | (method git-fetch) |
| @@ -831,7 +831,7 @@ exec ~a --logpath=\"/tmp/runtime-$USER/lua-language-server/log\" \ | |||
| 831 | (arguments | 831 | (arguments |
| 832 | (list | 832 | (list |
| 833 | #:make-flags | 833 | #:make-flags |
| 834 | #~(let ((lua-api-version #$(version-major+minor (package-version lua)))) | 834 | #~(let ((lua-api-version #$(this-lua-version))) |
| 835 | (list (string-append "CC=" #$(cc-for-target)) | 835 | (list (string-append "CC=" #$(cc-for-target)) |
| 836 | "CFLAGS='-D HAVE_SYS_SYSCTL_H=0'" ; sys/sysctl.h is deprecated | 836 | "CFLAGS='-D HAVE_SYS_SYSCTL_H=0'" ; sys/sysctl.h is deprecated |
| 837 | (string-append "prefix=" #$output) | 837 | (string-append "prefix=" #$output) |
| @@ -842,7 +842,7 @@ exec ~a --logpath=\"/tmp/runtime-$USER/lua-language-server/log\" \ | |||
| 842 | (delete 'check) | 842 | (delete 'check) |
| 843 | (add-after 'install 'check | 843 | (add-after 'install 'check |
| 844 | (lambda _ | 844 | (lambda _ |
| 845 | (let ((lua-version #$(version-major+minor (package-version lua)))) | 845 | (let ((lua-version #$(this-lua-version))) |
| 846 | (setenv "LUA_CPATH" | 846 | (setenv "LUA_CPATH" |
| 847 | (string-append #$output "/lib/lua/" lua-version "/?.so;;")) | 847 | (string-append #$output "/lib/lua/" lua-version "/?.so;;")) |
| 848 | (setenv "LUA_PATH" | 848 | (setenv "LUA_PATH" |
| @@ -868,14 +868,10 @@ It also binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG | |||
| 868 | interfaces.") | 868 | interfaces.") |
| 869 | (license license:expat))) | 869 | (license license:expat))) |
| 870 | 870 | ||
| 871 | (define-public lua-ossl | 871 | (define-public-lua-variants lua-ossl |
| 872 | (make-lua-ossl "lua-ossl" lua)) | 872 | (lua-5.3 lua5.3-ossl) |
| 873 | 873 | (lua-5.2 lua5.2-ossl) | |
| 874 | (define-public lua5.1-ossl | 874 | (lua-5.1 lua5.1-ossl)) |
| 875 | (make-lua-ossl "lua5.1-ossl" lua-5.1)) | ||
| 876 | |||
| 877 | (define-public lua5.2-ossl | ||
| 878 | (make-lua-ossl "lua5.2-ossl" lua-5.2)) | ||
| 879 | 875 | ||
| 880 | (define (make-lua-sec name lua lua-socket) | 876 | (define (make-lua-sec name lua lua-socket) |
| 881 | (package | 877 | (package |
