summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@zancanaro.id.au>2026-02-04 23:10:09 +1100
committerAndreas Enge <andreas@enge.fr>2026-02-18 21:02:27 +0100
commitf39633232de98a6bdaaae1310011e72be0e97293 (patch)
treecd9be52aebaf5bc845e42c439db74485bcbd7ef8 /gnu
parent606c3e18416faaa1eeb75c81e07f2c389f688b84 (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')
-rw-r--r--gnu/packages/lua.scm10
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.")
1734 (install-file file bin)) 1734 (install-file file bin))
1735 (find-files "." "fnlfmt"))))) 1735 (find-files "." "fnlfmt")))))
1736 (add-after 'install 'wrap 1736 (add-after 'install 'wrap
1737 (lambda* (#:key inputs native-inputs outputs #:allow-other-keys) 1737 (lambda* (#:key outputs #:allow-other-keys)
1738 (let* ((all-inputs (or native-inputs inputs)) 1738 (let* ((fnlfmt (assoc-ref outputs "out")))
1739 (fnlfmt (assoc-ref outputs "out"))
1740 (lua-version ,(version-major+minor (package-version lua)))
1741 (fennel (assoc-ref all-inputs "fennel")))
1742 (wrap-program (string-append fnlfmt "/bin/fnlfmt") 1739 (wrap-program (string-append fnlfmt "/bin/fnlfmt")
1743 `("LUA_PATH" ";" suffix 1740 `("GUIX_LUA_PATH" ";" suffix (,(getenv "GUIX_LUA_PATH"))))
1744 (,(format #f "~a/share/lua/~a/?.lua" fennel lua-version))))
1745 #t)))))) 1741 #t))))))
1746 (inputs (list bash-minimal)) 1742 (inputs (list bash-minimal))
1747 (native-inputs (list lua fennel)) 1743 (native-inputs (list lua fennel))