summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2018-02-08 01:38:03 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2018-02-08 05:01:42 +0100
commita093bb69679f7128a0f930ea825a4babe88ca100 (patch)
treeb6b54fcd04716f3fad87300f5b5945fff50070da /gnu
parent906f1b48e20a032c22a164c89f9e8862ab2bec7a (diff)
downloadpatches-a093bb69679f7128a0f930ea825a4babe88ca100.tar
patches-a093bb69679f7128a0f930ea825a4babe88ca100.tar.gz
gnu: luajit: Make available as ‘luajit’.
* gnu/packages/lua.scm (luajit)[arguments]: Add a ‘create-luajit-symlink’ phase to make the interpreter available simply as ‘luajit’.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/lua.scm16
1 files changed, 13 insertions, 3 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index fd14956007..5592b96937 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -127,9 +127,19 @@ for configuration, scripting, and rapid prototyping.")
(patches (search-patches "luajit-no_ldconfig.patch"))))
(build-system gnu-build-system)
(arguments
- '(#:tests? #f ;luajit is distributed without tests
- #:phases (modify-phases %standard-phases (delete 'configure))
- #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
+ `(#:tests? #f ; luajit is distributed without tests
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure) ; no configure script
+ (add-after 'install 'create-luajit-symlink
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (with-directory-excursion bin
+ (symlink ,(string-append name "-" version)
+ ,name)
+ #t)))))
+ #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
(home-page "http://www.luajit.org/")
(synopsis "Just in time compiler for Lua programming language version 5.1")
(description