mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: fennel: Cross-build.
* gnu/packages/lua.scm (fennel)[arguments]: Add phase to patch additional calls to lua binary. Adjust 'patch-fennel phase to specify specific lua location.
This commit is contained in:
parent
18a512528d
commit
209d94fa64
1 changed files with 10 additions and 2 deletions
|
@ -1087,10 +1087,18 @@ (define-public fennel
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(add-before 'build 'patch-lua-calls
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((lua (string-append (assoc-ref inputs "lua") "/bin/lua")))
|
||||
(setenv "LUA" lua)
|
||||
(substitute* "old/launcher.lua"
|
||||
(("/usr/bin/env lua") lua))
|
||||
#t)))
|
||||
(add-after 'build 'patch-fennel
|
||||
(lambda _
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "fennel"
|
||||
(("/usr/bin/env lua") (which "lua")))
|
||||
(("/usr/bin/env .*lua")
|
||||
(string-append (assoc-ref inputs "lua") "/bin/lua")))
|
||||
#t))
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
|
|
Loading…
Reference in a new issue