gnu: lua-luv: Use gexps.

* gnu/packages/lua.scm (lua-luv)[arguments]: Rewrite using gexps.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Luis Henrique Gomes Higino 2022-05-18 10:32:23 -03:00 committed by Ludovic Courtès
parent 42772a2fa7
commit 2db523a4a8
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -800,23 +800,23 @@ (define (make-lua-luv name lua)
"1yzi4bm845vl84wyv2qw4z1n1v285lgwm681swmp84brfy2s7czp"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; there are none
#:configure-flags
'("-DWITH_LUA_ENGINE=Lua"
"-DWITH_SHARED_LIBUV=On"
"-DBUILD_MODULE=Off"
"-DBUILD_SHARED_LIBS=On"
"-DLUA_BUILD_TYPE=System")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'copy-lua-compat
(lambda* (#:key inputs #:allow-other-keys)
(copy-recursively (assoc-ref inputs "lua-compat")
"lua-compat")
(setenv "CPATH"
(string-append (getcwd) "/lua-compat/c-api:"
(or (getenv "CPATH") "")))
#t)))))
(list #:tests? #f ; there are none
#:configure-flags
#~'("-DWITH_LUA_ENGINE=Lua"
"-DWITH_SHARED_LIBUV=On"
"-DBUILD_MODULE=Off"
"-DBUILD_SHARED_LIBS=On"
"-DLUA_BUILD_TYPE=System")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'copy-lua-compat
(lambda* _
(copy-recursively #+(this-package-native-input "lua-compat")
"lua-compat")
(setenv "CPATH"
(string-append (getcwd) "/lua-compat/c-api:"
(or (getenv "CPATH") "")))
#t)))))
(inputs
(list lua libuv-for-luv))
(native-inputs