aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2017-01-24 15:40:12 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-01-31 20:36:09 +0100
commit369ee96b6987b2f5f78bcde89f839799dab01a2e (patch)
tree18fdf2d003bd9c9003510bdc70bbf8c0c651ac15 /gnu
parent8e664e7e55ed52f349d610fc7d27916dc75581f3 (diff)
downloadguix-369ee96b6987b2f5f78bcde89f839799dab01a2e.tar
guix-369ee96b6987b2f5f78bcde89f839799dab01a2e.tar.gz
gnu: Add lua5.2-libmpack.
* gnu/packages/serialization.scm (lua5.2-libmpack): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/serialization.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index d59ded3130..9e073b7a98 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -193,6 +193,26 @@ that implements both the msgpack and msgpack-rpc specifications.")
`(("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")