diff options
| author | Nox <noximilien@riseup.net> | 2026-05-19 01:04:13 +0200 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-07 21:40:42 +0900 |
| commit | 8a4010f7988b960da8876b210b6d579e526c78cb (patch) | |
| tree | fd363c933a5e2f0d170b224f0d9a1b9d50dd76ee /gnu/packages/lua.scm | |
| parent | 243d892254170f4d23ff9622f0d833827c67c6c4 (diff) | |
gnu: make-lua-expat: Update to 1.5.2.
* gnu/packages/lua.scm (make-lua-expat): Update to 1.5.2.
[source]: Replace with lunarmodules fork. [home-page]: Likewise.
[arguments]<#:tests?>: Set to #f.
<#:phases>{check}: Remove custom phase.
<#:make-flags>: Use gexp.
Change-Id: I03da20eae6270b92c2f09f6e8aa68bad6251df88
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/packages/lua.scm')
| -rw-r--r-- | gnu/packages/lua.scm | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 1682bee2586..50353df3df4 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -328,34 +328,32 @@ some projects."))) | |||
| 328 | (define (make-lua-expat name lua) | 328 | (define (make-lua-expat name lua) |
| 329 | (package | 329 | (package |
| 330 | (name name) | 330 | (name name) |
| 331 | (version "1.3.0") | 331 | (version "1.5.2") |
| 332 | (source (origin | 332 | (source |
| 333 | (method url-fetch) | 333 | (origin |
| 334 | (uri (string-append "https://matthewwild.co.uk/projects/" | 334 | (method git-fetch) |
| 335 | "luaexpat/luaexpat-" version ".tar.gz")) | 335 | (uri (git-reference |
| 336 | (sha256 | 336 | (url "https://github.com/lunarmodules/luaexpat") |
| 337 | (base32 | 337 | (commit version))) |
| 338 | "1hvxqngn0wf5642i5p3vcyhg3pmp102k63s9ry4jqyyqc1wkjq6h")))) | 338 | (file-name (git-file-name name version)) |
| 339 | (sha256 | ||
| 340 | (base32 | ||
| 341 | "03wb1rr739qh9xvvi762kpiw5bs99m2plypq5caaan3qacm73rry")))) | ||
| 339 | (build-system gnu-build-system) | 342 | (build-system gnu-build-system) |
| 340 | (arguments | 343 | (arguments |
| 341 | `(#:make-flags | 344 | (list |
| 342 | (let ((out (assoc-ref %outputs "out")) | 345 | #:tests? #f ;tests require "busted" |
| 343 | (lua-version ,(version-major+minor (package-version lua)))) | 346 | #:make-flags |
| 344 | (list ,(string-append "CC=" (cc-for-target)) | 347 | #~(let ((lua-version #$(version-major+minor (package-version lua)))) |
| 345 | (string-append "LUA_LDIR=" out "/share/lua/" lua-version) | 348 | (list (string-append "CC=" #$(cc-for-target)) |
| 346 | (string-append "LUA_CDIR=" out "/lib/lua/" lua-version))) | 349 | (string-append "LUA_LDIR=" #$output "/share/lua/" lua-version) |
| 347 | #:phases | 350 | (string-append "LUA_CDIR=" #$output "/lib/lua/" lua-version))) |
| 348 | (modify-phases %standard-phases | 351 | #:phases |
| 349 | (delete 'configure) | 352 | #~(modify-phases %standard-phases |
| 350 | (replace 'check | 353 | (delete 'configure)))) |
| 351 | (lambda _ | ||
| 352 | (setenv "LUA_CPATH" "src/?.so;;") | ||
| 353 | (setenv "LUA_PATH" "src/?.lua;;") | ||
| 354 | (invoke "lua" "tests/test.lua") | ||
| 355 | (invoke "lua" "tests/test-lom.lua")))))) | ||
| 356 | (inputs | 354 | (inputs |
| 357 | (list lua expat)) | 355 | (list lua expat)) |
| 358 | (home-page "https://matthewwild.co.uk/projects/luaexpat/") | 356 | (home-page "https://github.com/lunarmodules/luaexpat") |
| 359 | (synopsis "SAX XML parser based on the Expat library") | 357 | (synopsis "SAX XML parser based on the Expat library") |
| 360 | (description "LuaExpat is a SAX XML parser based on the Expat library.") | 358 | (description "LuaExpat is a SAX XML parser based on the Expat library.") |
| 361 | (license (package-license lua-5.1)))) | 359 | (license (package-license lua-5.1)))) |
