diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-04-16 11:58:33 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-04-16 11:58:33 +0200 |
| commit | 9374b0fe5240eb140cf09530bf779aacaccdee2b (patch) | |
| tree | 4e38b7120c24dbf7044d2d737dba1f4418923101 /gnu/packages/lua.scm | |
| parent | 29c9ae91627afcae51d6ae9874061c7155339d32 (diff) | |
gnu: lua-ossl: Update to 20220711.
* gnu/packages/lua.scm (lua-ossl): Update to 20220711.
[source]: Fetch from git repository.
[arguments]: Use G-expressions; disable two tests.
[description]: Reflow paragraph.
Change-Id: I2640cba886362635ee4ddedd020a06b433e46e5b
Diffstat (limited to 'gnu/packages/lua.scm')
| -rw-r--r-- | gnu/packages/lua.scm | 72 |
1 files changed, 39 insertions, 33 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index c35bbe8bcdc..821ac6c9c9a 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> | 4 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
| 5 | ;;; Copyright © 2014 Andreas Enge <andreas@enge.fr> | 5 | ;;; Copyright © 2014 Andreas Enge <andreas@enge.fr> |
| 6 | ;;; Copyright © 2016, 2017, 2020-2022 Efraim Flashner <efraim@flashner.co.il> | 6 | ;;; Copyright © 2016, 2017, 2020-2022 Efraim Flashner <efraim@flashner.co.il> |
| 7 | ;;; Copyright © 2016, 2019 Ricardo Wurmus <rekado@elephly.net> | 7 | ;;; Copyright © 2016, 2019, 2024 Ricardo Wurmus <rekado@elephly.net> |
| 8 | ;;; Copyright © 2016 doncatnip <gnopap@gmail.com> | 8 | ;;; Copyright © 2016 doncatnip <gnopap@gmail.com> |
| 9 | ;;; Copyright © 2016, 2017, 2019 Clément Lassieur <clement@lassieur.org> | 9 | ;;; Copyright © 2016, 2017, 2019 Clément Lassieur <clement@lassieur.org> |
| 10 | ;;; Copyright © 2016 José Miguel Sánchez García <jmi2k@openmailbox.org> | 10 | ;;; Copyright © 2016 José Miguel Sánchez García <jmi2k@openmailbox.org> |
| @@ -375,49 +375,55 @@ directory structure and file attributes.") | |||
| 375 | (define (make-lua-ossl name lua) | 375 | (define (make-lua-ossl name lua) |
| 376 | (package | 376 | (package |
| 377 | (name name) | 377 | (name name) |
| 378 | (version "20170903") | 378 | (version "20220711") |
| 379 | (source (origin | 379 | (source (origin |
| 380 | (method url-fetch) | 380 | (method git-fetch) |
| 381 | (uri (string-append "https://25thandclement.com/~william/" | 381 | (uri (git-reference |
| 382 | "projects/releases/luaossl-" version ".tgz")) | 382 | (url "https://github.com/wahern/luaossl") |
| 383 | (commit (string-append "rel-" version)))) | ||
| 384 | (file-name (git-file-name name version)) | ||
| 383 | (sha256 | 385 | (sha256 |
| 384 | (base32 | 386 | (base32 |
| 385 | "10392bvd0lzyibipblgiss09zlqh3a5zgqg1b9lgbybpqb9cv2k3")))) | 387 | "1a9pgmc6fbhgh1m9ksz9fq057yzz46npqgakcsy9vngg47xacfdb")))) |
| 386 | (build-system gnu-build-system) | 388 | (build-system gnu-build-system) |
| 387 | (arguments | 389 | (arguments |
| 388 | `(#:make-flags | 390 | (list |
| 389 | (let ((out (assoc-ref %outputs "out")) | 391 | #:make-flags |
| 390 | (lua-api-version ,(version-major+minor (package-version lua)))) | 392 | #~(let ((lua-api-version #$(version-major+minor (package-version lua)))) |
| 391 | (list ,(string-append "CC=" (cc-for-target)) | 393 | (list (string-append "CC=" #$(cc-for-target)) |
| 392 | "CFLAGS='-D HAVE_SYS_SYSCTL_H=0'" ; sys/sysctl.h is deprecated | 394 | "CFLAGS='-D HAVE_SYS_SYSCTL_H=0'" ; sys/sysctl.h is deprecated |
| 393 | (string-append "prefix=" out) | 395 | (string-append "prefix=" #$output) |
| 394 | (string-append "LUA_APIS=" lua-api-version))) | 396 | (string-append "LUA_APIS=" lua-api-version))) |
| 395 | #:phases | 397 | #:phases |
| 396 | (modify-phases %standard-phases | 398 | #~(modify-phases %standard-phases |
| 397 | (delete 'configure) | 399 | (delete 'configure) |
| 398 | (delete 'check) | 400 | (delete 'check) |
| 399 | (add-after 'install 'check | 401 | (add-after 'install 'check |
| 400 | (lambda* (#:key outputs #:allow-other-keys) | 402 | (lambda _ |
| 401 | (let ((out (assoc-ref outputs "out")) | 403 | (let ((lua-version #$(version-major+minor (package-version lua)))) |
| 402 | (lua-version ,(version-major+minor (package-version lua)))) | 404 | (setenv "LUA_CPATH" |
| 403 | (setenv "LUA_CPATH" | 405 | (string-append #$output "/lib/lua/" lua-version "/?.so;;")) |
| 404 | (string-append out "/lib/lua/" lua-version "/?.so;;")) | 406 | (setenv "LUA_PATH" |
| 405 | (setenv "LUA_PATH" | 407 | (string-append #$output "/share/lua/" lua-version "/?.lua;;")) |
| 406 | (string-append out "/share/lua/" lua-version "/?.lua;;")) | 408 | (with-directory-excursion "regress" |
| 407 | (with-directory-excursion "regress" | 409 | (for-each (lambda (f) |
| 408 | (for-each (lambda (f) | 410 | (unless (member f (list |
| 409 | (invoke "lua" f)) | 411 | ;; This test is for luajit only |
| 410 | (find-files "." "^[0-9].*\\.lua$")))) | 412 | "./104-interposition-discarded.lua" |
| 411 | #t))))) | 413 | ;; needs cqueues, which needs ossl |
| 414 | "./148-custom-extensions.lua")) | ||
| 415 | (invoke "lua" f))) | ||
| 416 | (find-files "." "^[0-9].*\\.lua$"))))))))) | ||
| 412 | (inputs | 417 | (inputs |
| 413 | (list lua openssl)) | 418 | (list lua openssl)) |
| 414 | (home-page "https://25thandclement.com/~william/projects/luaossl.html") | 419 | (home-page "https://25thandclement.com/~william/projects/luaossl.html") |
| 415 | (synopsis "OpenSSL bindings for Lua") | 420 | (synopsis "OpenSSL bindings for Lua") |
| 416 | (description "The luaossl extension module for Lua provides comprehensive, | 421 | (description "The luaossl extension module for Lua provides comprehensive, |
| 417 | low-level bindings to the OpenSSL library, including support for certificate and | 422 | low-level bindings to the OpenSSL library, including support for certificate |
| 418 | key management, key generation, signature verification, and deep bindings to the | 423 | and key management, key generation, signature verification, and deep bindings |
| 419 | distinguished name, alternative name, and X.509v3 extension interfaces. It also | 424 | to the distinguished name, alternative name, and X.509v3 extension interfaces. |
| 420 | binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG interfaces.") | 425 | It also binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG |
| 426 | interfaces.") | ||
| 421 | (license license:expat))) | 427 | (license license:expat))) |
| 422 | 428 | ||
| 423 | (define-public lua-ossl | 429 | (define-public lua-ossl |
