gnu: Add lua5.1-lpeg and lua5.1-lmpack.
* gnu/packages/lua.scm (lua5.1-lpeg): New variable. * gnu/packages/serialization.scm (lua5.1-libmpack): New variable. The packages lua-lpeg and lua-libmpack had no Lua 5.1 variants. These packages will be needed to build Neovim properly. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									3239dcd38d
								
							
						
					
					
						commit
						01a0a0c445
					
				
					 2 changed files with 23 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -408,6 +408,9 @@ Grammars (PEGs).")
 | 
			
		|||
(define-public lua-lpeg
 | 
			
		||||
  (make-lua-lpeg "lua-lpeg" lua))
 | 
			
		||||
 | 
			
		||||
(define-public lua5.1-lpeg
 | 
			
		||||
  (make-lua-lpeg "lua5.1-lpeg" lua-5.1))
 | 
			
		||||
 | 
			
		||||
(define-public lua5.2-lpeg
 | 
			
		||||
  (make-lua-lpeg "lua5.2-lpeg" lua-5.2))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -225,6 +225,26 @@ that implements both the msgpack and msgpack-rpc specifications.")
 | 
			
		|||
    (home-page "https://github.com/libmpack/libmpack-lua")
 | 
			
		||||
    (synopsis "Lua bindings for the libmpack binary serialization library")))
 | 
			
		||||
 | 
			
		||||
(define-public lua5.1-libmpack
 | 
			
		||||
  (package (inherit lua-libmpack)
 | 
			
		||||
    (name "lua5.1-libmpack")
 | 
			
		||||
    (arguments
 | 
			
		||||
     (substitute-keyword-arguments (package-arguments lua-libmpack)
 | 
			
		||||
       ((#:make-flags flags)
 | 
			
		||||
        `(let* ((lua-version ,(package-version lua-5.1))
 | 
			
		||||
                (lua-major+minor ,(version-major+minor (package-version lua-5.1))))
 | 
			
		||||
           (list "CC=gcc"
 | 
			
		||||
                 "USE_SYSTEM_LUA=yes"
 | 
			
		||||
                 (string-append "MPACK_LUA_VERSION=" lua-version)
 | 
			
		||||
                 (string-append "MPACK_LUA_VERSION_NOPATCH=" 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.1)))))
 | 
			
		||||
 | 
			
		||||
(define-public lua5.2-libmpack
 | 
			
		||||
  (package (inherit lua-libmpack)
 | 
			
		||||
    (name "lua5.2-libmpack")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue