diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-05 15:12:10 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-11 11:10:38 +0900 |
| commit | 4a0cd2d5398a7137b2ff6694bac1989de2308d4a (patch) | |
| tree | e787c6d986a573ff73f675a3e06ece498c37b1e8 /gnu/packages | |
| parent | d6eaee995ad40fd5270097750a744684cc53c1fd (diff) | |
gnu: fennel: Enable readline support.
* gnu/packages/lua.scm (fennel)[arguments]<#:phases>{wrap}:
Add phase to wrap Lua paths. [inputs]: Add lua-readline.
Change-Id: I9b8b521a5c0739f46acd89ac780c2cb5c4ad1d23
Merges: https://codeberg.org/guix/guix/pulls/9090
Reviewed-by: Carlo Zancanaro <carlo@zancanaro.id.au>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/lua.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 56f5ce6f418..adc5ab02bc3 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -1973,10 +1973,17 @@ multiple local rocks trees.") | |||
| 1973 | (("/usr/bin/env .*lua") | 1973 | (("/usr/bin/env .*lua") |
| 1974 | (search-input-file inputs "/bin/lua"))))) | 1974 | (search-input-file inputs "/bin/lua"))))) |
| 1975 | (delete 'check) | 1975 | (delete 'check) |
| 1976 | (add-after 'install 'check | 1976 | (add-after 'install 'wrap |
| 1977 | (lambda _ | ||
| 1978 | (wrap-program (string-append #$output "/bin/fennel") | ||
| 1979 | `("GUIX_LUA_CPATH" ";" suffix | ||
| 1980 | (,(getenv "GUIX_LUA_CPATH"))) | ||
| 1981 | `("GUIX_LUA_PATH" ";" suffix | ||
| 1982 | (,(getenv "GUIX_LUA_PATH")))))) | ||
| 1983 | (add-after 'wrap 'check | ||
| 1977 | (assoc-ref %standard-phases | 1984 | (assoc-ref %standard-phases |
| 1978 | 'check))))) | 1985 | 'check))))) |
| 1979 | (inputs (list lua)) | 1986 | (inputs (list lua lua-readline)) |
| 1980 | (home-page "https://fennel-lang.org/") | 1987 | (home-page "https://fennel-lang.org/") |
| 1981 | (synopsis "Lisp that compiles to Lua") | 1988 | (synopsis "Lisp that compiles to Lua") |
| 1982 | (description | 1989 | (description |
