[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29425] [PATCH 1/6] gnu: Add lua5.1-bitop.
From: |
Clément Lassieur |
Subject: |
[bug#29425] [PATCH 1/6] gnu: Add lua5.1-bitop. |
Date: |
Fri, 24 Nov 2017 17:52:22 +0100 |
* gnu/packages/lua.scm (lua5.1-bitop): New variable.
---
gnu/packages/lua.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index c8bc4ef85..8aec6374f 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -446,3 +446,26 @@ Grammars (PEGs).")
"Lua BitOp is a C extension module for Lua which adds bitwise operations
on numbers.")
(license license:expat)))
+
+(define-public lua5.1-bitop
+ (package
+ (inherit lua5.2-bitop)
+ (name "lua5.1-bitop")
+ ;; XXX: The arguments field is almost an exact copy of the field in
+ ;; "lua5.2-bitop", except for the version string, which was derived from
+ ;; "lua-5.2" and now is taken from "lua-5.1". See this discussion for
+ ;; context:
+ ;; http://lists.gnu.org/archive/html/guix-devel/2017-01/msg02048.html
+ (arguments
+ `(#:test-target "test"
+ #:make-flags
+ (list "INSTALL=install -pD"
+ (string-append "INSTALLPATH=printf "
+ (assoc-ref %outputs "out")
+ "/lib/lua/"
+ ,(version-major+minor (package-version lua-5.1))
+ "/bit/bit.so"))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (inputs `(("lua", lua-5.1)))))
--
2.15.0