[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29425] [PATCH 1/6] gnu: Add lua5.1-bitop.
From: |
Ludovic Courtès |
Subject: |
[bug#29425] [PATCH 1/6] gnu: Add lua5.1-bitop. |
Date: |
Fri, 24 Nov 2017 22:48:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Clément Lassieur <address@hidden> skribis:
> * gnu/packages/lua.scm (lua5.1-bitop): New variable.
[...]
> +(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))))
Maybe we could write:
(define (lua-bitop lua)
(package
…))
(define lua5.1-bitop (lua-bitop lua-5.1))
(define lua5.2-bitop (lua-bitop lua-5.2))
?
If not, this patch LGTM.
Thank you,
Ludo’.