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
This commit is contained in:
parent
29c9ae9162
commit
9374b0fe52
1 changed files with 39 additions and 33 deletions
|
@ -4,7 +4,7 @@
|
||||||
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
||||||
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2016, 2017, 2020-2022 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016, 2017, 2020-2022 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2016, 2019 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2016, 2019, 2024 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
|
;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
|
||||||
;;; Copyright © 2016, 2017, 2019 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2016, 2017, 2019 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2016 José Miguel Sánchez García <jmi2k@openmailbox.org>
|
;;; Copyright © 2016 José Miguel Sánchez García <jmi2k@openmailbox.org>
|
||||||
|
@ -375,49 +375,55 @@ directory structure and file attributes.")
|
||||||
(define (make-lua-ossl name lua)
|
(define (make-lua-ossl name lua)
|
||||||
(package
|
(package
|
||||||
(name name)
|
(name name)
|
||||||
(version "20170903")
|
(version "20220711")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://25thandclement.com/~william/"
|
(uri (git-reference
|
||||||
"projects/releases/luaossl-" version ".tgz"))
|
(url "https://github.com/wahern/luaossl")
|
||||||
|
(commit (string-append "rel-" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"10392bvd0lzyibipblgiss09zlqh3a5zgqg1b9lgbybpqb9cv2k3"))))
|
"1a9pgmc6fbhgh1m9ksz9fq057yzz46npqgakcsy9vngg47xacfdb"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags
|
(list
|
||||||
(let ((out (assoc-ref %outputs "out"))
|
#:make-flags
|
||||||
(lua-api-version ,(version-major+minor (package-version lua))))
|
#~(let ((lua-api-version #$(version-major+minor (package-version lua))))
|
||||||
(list ,(string-append "CC=" (cc-for-target))
|
(list (string-append "CC=" #$(cc-for-target))
|
||||||
"CFLAGS='-D HAVE_SYS_SYSCTL_H=0'" ; sys/sysctl.h is deprecated
|
"CFLAGS='-D HAVE_SYS_SYSCTL_H=0'" ; sys/sysctl.h is deprecated
|
||||||
(string-append "prefix=" out)
|
(string-append "prefix=" #$output)
|
||||||
(string-append "LUA_APIS=" lua-api-version)))
|
(string-append "LUA_APIS=" lua-api-version)))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(delete 'check)
|
(delete 'check)
|
||||||
(add-after 'install 'check
|
(add-after 'install 'check
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(let ((lua-version #$(version-major+minor (package-version lua))))
|
||||||
(lua-version ,(version-major+minor (package-version lua))))
|
(setenv "LUA_CPATH"
|
||||||
(setenv "LUA_CPATH"
|
(string-append #$output "/lib/lua/" lua-version "/?.so;;"))
|
||||||
(string-append out "/lib/lua/" lua-version "/?.so;;"))
|
(setenv "LUA_PATH"
|
||||||
(setenv "LUA_PATH"
|
(string-append #$output "/share/lua/" lua-version "/?.lua;;"))
|
||||||
(string-append out "/share/lua/" lua-version "/?.lua;;"))
|
(with-directory-excursion "regress"
|
||||||
(with-directory-excursion "regress"
|
(for-each (lambda (f)
|
||||||
(for-each (lambda (f)
|
(unless (member f (list
|
||||||
(invoke "lua" f))
|
;; This test is for luajit only
|
||||||
(find-files "." "^[0-9].*\\.lua$"))))
|
"./104-interposition-discarded.lua"
|
||||||
#t)))))
|
;; needs cqueues, which needs ossl
|
||||||
|
"./148-custom-extensions.lua"))
|
||||||
|
(invoke "lua" f)))
|
||||||
|
(find-files "." "^[0-9].*\\.lua$")))))))))
|
||||||
(inputs
|
(inputs
|
||||||
(list lua openssl))
|
(list lua openssl))
|
||||||
(home-page "https://25thandclement.com/~william/projects/luaossl.html")
|
(home-page "https://25thandclement.com/~william/projects/luaossl.html")
|
||||||
(synopsis "OpenSSL bindings for Lua")
|
(synopsis "OpenSSL bindings for Lua")
|
||||||
(description "The luaossl extension module for Lua provides comprehensive,
|
(description "The luaossl extension module for Lua provides comprehensive,
|
||||||
low-level bindings to the OpenSSL library, including support for certificate and
|
low-level bindings to the OpenSSL library, including support for certificate
|
||||||
key management, key generation, signature verification, and deep bindings to the
|
and key management, key generation, signature verification, and deep bindings
|
||||||
distinguished name, alternative name, and X.509v3 extension interfaces. It also
|
to the distinguished name, alternative name, and X.509v3 extension interfaces.
|
||||||
binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG interfaces.")
|
It also binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG
|
||||||
|
interfaces.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public lua-ossl
|
(define-public lua-ossl
|
||||||
|
|
Reference in a new issue