gnu: Add lua5.2-libmpack.

* gnu/packages/serialization.scm (lua5.2-libmpack): New variable.
This commit is contained in:
Ricardo Wurmus 2017-01-24 15:40:12 +01:00 committed by Ricardo Wurmus
parent 8e664e7e55
commit 369ee96b69
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -193,6 +193,26 @@ (define-public lua-libmpack
`(("pkg-config" ,pkg-config)))
(synopsis "Lua bindings for the libmpack binary serialization library")))
(define-public lua5.2-libmpack
(package (inherit lua-libmpack)
(name "lua5.2-libmpack")
(arguments
(substitute-keyword-arguments (package-arguments lua-libmpack)
((#:make-flags flags)
`(let* ((lua-version ,(package-version lua-5.2))
(lua-major+minor ,(version-major+minor (package-version lua-5.2))))
(list "CC=gcc"
"USE_SYSTEM_LUA=yes"
(string-append "LUA_VERSION=" lua-version)
(string-append "LUA_VERSION_MAJ_MIN=" lua-major+minor)
(string-append "PREFIX="
(assoc-ref %outputs "out"))
(string-append "LUA_CMOD_INSTALLDIR="
(assoc-ref %outputs "out")
"/lib/lua/" lua-major+minor))))))
(inputs
`(("lua" ,lua-5.2)))))
(define-public yaml-cpp
(package
(name "yaml-cpp")