diff options
| -rw-r--r-- | gnu/packages/lua.scm | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 3a838b883bb..b79e35240b1 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -424,16 +424,16 @@ with the appropriate luaX.X- prefix for this package." | |||
| 424 | (string-append "lua" (this-lua-version) "-" (substring name 4)) | 424 | (string-append "lua" (this-lua-version) "-" (substring name 4)) |
| 425 | name))) | 425 | name))) |
| 426 | 426 | ||
| 427 | (define (make-lua-expat name lua) | 427 | (define-public lua-expat |
| 428 | (package | 428 | (package |
| 429 | (name name) | 429 | (name "lua-expat") |
| 430 | (version "1.5.2") | 430 | (version "1.5.2") |
| 431 | (source | 431 | (source |
| 432 | (origin | 432 | (origin |
| 433 | (method git-fetch) | 433 | (method git-fetch) |
| 434 | (uri (git-reference | 434 | (uri (git-reference |
| 435 | (url "https://github.com/lunarmodules/luaexpat") | 435 | (url "https://github.com/lunarmodules/luaexpat") |
| 436 | (commit version))) | 436 | (commit version))) |
| 437 | (file-name (git-file-name name version)) | 437 | (file-name (git-file-name name version)) |
| 438 | (sha256 | 438 | (sha256 |
| 439 | (base32 | 439 | (base32 |
| @@ -443,7 +443,7 @@ with the appropriate luaX.X- prefix for this package." | |||
| 443 | (list | 443 | (list |
| 444 | #:tests? #f ;tests require "busted" | 444 | #:tests? #f ;tests require "busted" |
| 445 | #:make-flags | 445 | #:make-flags |
| 446 | #~(let ((lua-version #$(version-major+minor (package-version lua)))) | 446 | #~(let ((lua-version #$(this-lua-version))) |
| 447 | (list (string-append "CC=" #$(cc-for-target)) | 447 | (list (string-append "CC=" #$(cc-for-target)) |
| 448 | (string-append "LUA_LDIR=" #$output "/share/lua/" lua-version) | 448 | (string-append "LUA_LDIR=" #$output "/share/lua/" lua-version) |
| 449 | (string-append "LUA_CDIR=" #$output "/lib/lua/" lua-version))) | 449 | (string-append "LUA_CDIR=" #$output "/lib/lua/" lua-version))) |
| @@ -457,20 +457,12 @@ with the appropriate luaX.X- prefix for this package." | |||
| 457 | (description "LuaExpat is a SAX XML parser based on the Expat library.") | 457 | (description "LuaExpat is a SAX XML parser based on the Expat library.") |
| 458 | (license (package-license lua-5.1)))) | 458 | (license (package-license lua-5.1)))) |
| 459 | 459 | ||
| 460 | (define-public lua5.1-expat | 460 | (define-public-lua-variants lua-expat |
| 461 | (make-lua-expat "lua5.1-expat" lua-5.1)) | 461 | (lua-5.5 lua5.5-expat) |
| 462 | 462 | (lua-5.4 lua5.4-expat) | |
| 463 | (define-public lua5.2-expat | 463 | (lua-5.3 lua5.3-expat) |
| 464 | (make-lua-expat "lua5.2-expat" lua-5.2)) | 464 | (lua-5.2 lua5.2-expat) |
| 465 | 465 | (lua-5.1 lua5.1-expat)) | |
| 466 | (define-public lua-expat | ||
| 467 | (make-lua-expat "lua-expat" lua)) | ||
| 468 | |||
| 469 | (define-public lua5.4-expat | ||
| 470 | (make-lua-expat "lua5.4-expat" lua-5.4)) | ||
| 471 | |||
| 472 | (define-public lua5.5-expat | ||
| 473 | (make-lua-expat "lua5.5-expat" lua-5.5)) | ||
| 474 | 466 | ||
| 475 | (define (make-lua-socket name lua) | 467 | (define (make-lua-socket name lua) |
| 476 | ;; The 3.1.0 tag still has 3.0.0 in a bunch of places. | 468 | ;; The 3.1.0 tag still has 3.0.0 in a bunch of places. |
