diff options
| author | Carlo Zancanaro <carlo@zancanaro.id.au> | 2026-02-04 23:10:09 +1100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-18 21:02:27 +0100 |
| commit | f39633232de98a6bdaaae1310011e72be0e97293 (patch) | |
| tree | cd9be52aebaf5bc845e42c439db74485bcbd7ef8 /gnu/packages/lua.scm | |
| parent | 606c3e18416faaa1eeb75c81e07f2c389f688b84 (diff) | |
gnu: fnlfmt: Set GUIX_LUA_PATH instead of LUA_PATH.
* gnu/packages/lua.scm (fnlfmt)[arguments]<#:phases>{wrap}: Wrap GUIX_LUA_PATH
instead of LUA_PATH.
Change-Id: Ib37d11062d768629c974c2ea53267971275e0613
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/lua.scm')
| -rw-r--r-- | gnu/packages/lua.scm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index c40e4ed94fe..3a1b33369fa 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -1734,14 +1734,10 @@ This compiler does the opposite of what the Fennel compiler does.") (install-file file bin)) (find-files "." "fnlfmt"))))) (add-after 'install 'wrap - (lambda* (#:key inputs native-inputs outputs #:allow-other-keys) - (let* ((all-inputs (or native-inputs inputs)) - (fnlfmt (assoc-ref outputs "out")) - (lua-version ,(version-major+minor (package-version lua))) - (fennel (assoc-ref all-inputs "fennel"))) + (lambda* (#:key outputs #:allow-other-keys) + (let* ((fnlfmt (assoc-ref outputs "out"))) (wrap-program (string-append fnlfmt "/bin/fnlfmt") - `("LUA_PATH" ";" suffix - (,(format #f "~a/share/lua/~a/?.lua" fennel lua-version)))) + `("GUIX_LUA_PATH" ";" suffix (,(getenv "GUIX_LUA_PATH")))) #t)))))) (inputs (list bash-minimal)) (native-inputs (list lua fennel)) |
