guix_mirror_bot pushed a commit to branch lua-team
in repository guix.
commit 1c553bb0c08e1b9a4452876175e4f65ebbcb06af
Author: Carlo Zancanaro <[email protected]>
AuthorDate: Wed Feb 4 23:10:09 2026 +1100
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 <[email protected]>
---
gnu/packages/lua.scm | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index c40e4ed94f..3a1b33369f 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))