diff options
| author | Nox <noximilien@riseup.net> | 2026-05-19 02:06:20 +0200 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-07 22:38:55 +0900 |
| commit | 6ac39ee725d73741253ef8ad037199950f604903 (patch) | |
| tree | e78e9a682a11f2b11cb1e488248f1d91266fe101 /gnu | |
| parent | 611656f69e99436dc6995d57f7fa36ec754deb8a (diff) | |
gnu: make-lua-sec: Update to 1.3.2.
* gnu/packages/lua.scm (make-lua-socket): Update to 1.3.2.
[arguments]: Use gexp.
[propagated-inputs]: Pass lua-socket from procedure's argument.
Change-Id: I413692b537a7e115bb1f1a4523f43eea7b387169
Merges: https://codeberg.org/guix/guix/pulls/8711
Reviewed-by: Carlo Zancanaro <carlo@zancanaro.id.au>
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/lua.scm | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index ffb4954b3d5..be9ba73c5b0 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -801,10 +801,10 @@ interfaces.") | |||
| 801 | (define-public lua5.2-ossl | 801 | (define-public lua5.2-ossl |
| 802 | (make-lua-ossl "lua5.2-ossl" lua-5.2)) | 802 | (make-lua-ossl "lua5.2-ossl" lua-5.2)) |
| 803 | 803 | ||
| 804 | (define (make-lua-sec name lua) | 804 | (define (make-lua-sec name lua lua-socket) |
| 805 | (package | 805 | (package |
| 806 | (name name) | 806 | (name name) |
| 807 | (version "0.9") | 807 | (version "1.3.2") |
| 808 | (source (origin | 808 | (source (origin |
| 809 | (method git-fetch) | 809 | (method git-fetch) |
| 810 | (uri (git-reference | 810 | (uri (git-reference |
| @@ -813,40 +813,37 @@ interfaces.") | |||
| 813 | (file-name (git-file-name name version)) | 813 | (file-name (git-file-name name version)) |
| 814 | (sha256 | 814 | (sha256 |
| 815 | (base32 | 815 | (base32 |
| 816 | "0ssncgkggyr8i3z6zbvgrgsqj2q8676rnsikhpfwnk9n7sx4gwbl")))) | 816 | "0rrdfbnkd8pgqwh3f0iyd5cxy7g1h0568a88m3sq1z7715js4yx3")))) |
| 817 | (build-system gnu-build-system) | 817 | (build-system gnu-build-system) |
| 818 | (arguments | 818 | (arguments |
| 819 | `(#:make-flags | 819 | (list |
| 820 | (let ((out (assoc-ref %outputs "out")) | 820 | #:tests? #f ;no tests |
| 821 | (lua-version ,(version-major+minor (package-version lua)))) | 821 | #:make-flags |
| 822 | (list "linux" | 822 | #~(let* ((lua-api-version #$(version-major+minor (package-version lua))) |
| 823 | ,(string-append "CC=" (cc-for-target)) | 823 | (lua-path (string-append #$output "/share/lua/" lua-api-version)) |
| 824 | "LD=gcc" | 824 | (lua-cpath (string-append #$output "/lib/lua/" lua-api-version))) |
| 825 | (string-append "LUAPATH=" out "/share/lua/" lua-version) | 825 | (list "linux" |
| 826 | (string-append "LUACPATH=" out "/lib/lua/" lua-version))) | 826 | (string-append "CC=" #$(cc-for-target)) |
| 827 | #:tests? #f ; no tests included | 827 | (string-append "LD=" #$(cc-for-target)) |
| 828 | #:phases | 828 | (string-append "LUAPATH=" lua-path) |
| 829 | (modify-phases %standard-phases | 829 | (string-append "LUACPATH=" lua-cpath))) |
| 830 | (delete 'configure)))) | 830 | #:phases #~(modify-phases %standard-phases |
| 831 | (inputs | 831 | (delete 'configure)))) |
| 832 | (list lua openssl)) | 832 | (inputs (list lua openssl)) |
| 833 | (propagated-inputs | 833 | (propagated-inputs (list lua-socket)) |
| 834 | `(("lua-socket" | ||
| 835 | ,(make-lua-socket | ||
| 836 | (format #f "lua~a-socket" | ||
| 837 | (version-major+minor (package-version lua))) lua)))) | ||
| 838 | (home-page "https://github.com/brunoos/luasec/wiki") | 834 | (home-page "https://github.com/brunoos/luasec/wiki") |
| 839 | (synopsis "OpenSSL bindings for Lua") | 835 | (synopsis "OpenSSL bindings for Lua") |
| 840 | (description "LuaSec is a binding for OpenSSL library to provide TLS/SSL | 836 | (description |
| 841 | communication. It takes an already established TCP connection and creates a | 837 | "LuaSec is a binding for OpenSSL library to provide TLS/SSL communication. |
| 842 | secure session between the peers.") | 838 | It takes an already established TCP connection and creates a secure session |
| 839 | between the peers.") | ||
| 843 | (license license:expat))) | 840 | (license license:expat))) |
| 844 | 841 | ||
| 845 | (define-public lua5.1-sec | 842 | (define-public lua5.1-sec |
| 846 | (make-lua-sec "lua5.1-sec" lua-5.1)) | 843 | (make-lua-sec "lua5.1-sec" lua-5.1 lua5.1-socket)) |
| 847 | 844 | ||
| 848 | (define-public lua5.2-sec | 845 | (define-public lua5.2-sec |
| 849 | (make-lua-sec "lua5.2-sec" lua-5.2)) | 846 | (make-lua-sec "lua5.2-sec" lua-5.2 lua5.2-socket)) |
| 850 | 847 | ||
| 851 | (define (make-lua-cqueues name lua lua-ossl) | 848 | (define (make-lua-cqueues name lua lua-ossl) |
| 852 | (package | 849 | (package |
