guix_mirror_bot pushed a commit to branch lua-team
in repository guix.

commit f44eed317457f85bd8841978c7a0017b5f91f414
Author: Carlo Zancanaro <[email protected]>
AuthorDate: Wed Feb 4 23:08:51 2026 +1100

    gnu: knot-resolver: Remove wrapping of LUA_{,C}PATH and wrap 
GUIX_LUA_{,C}PATH.
    
    * gnu/packages/dns.scm (knot-resolver)[arguments]<#:phases>{wrap-binary}: 
Wrap
    GUIX_LUA_PATH and GUIX_LUA_CPATH instead of LUA_PATH and LUA_CPATH.
    
    Change-Id: I5d70f7484cbaa56d88f78d2df260b13dd9f1def2
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/dns.scm | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index 9c99918981..df298e1893 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -1033,18 +1033,10 @@ synthesis, and on-the-fly re-configuration.")
                   "info")))))
          (add-after 'install 'wrap-binary
            (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (lua-* (map cdr (filter
-                                     (lambda (input)
-                                       (string-prefix? "lua-" (car input)))
-                                     inputs)))
-                    (lua-path (lambda (p)
-                                (string-append p "/share/lua/5.1/?.lua")))
-                    (lua-cpath (lambda (p)
-                                 (string-append p "/lib/lua/5.1/?.so"))))
+             (let* ((out (assoc-ref outputs "out")))
                (wrap-program (string-append out "/sbin/kresd")
-                 `("LUA_PATH" ";" prefix ,(map lua-path lua-*))
-                 `("LUA_CPATH" ";" prefix ,(map lua-cpath lua-*)))))))))
+                 `("GUIX_LUA_PATH" ";" prefix (,(getenv "GUIX_LUA_PATH")))
+                 `("GUIX_LUA_CPATH" ";" prefix (,(getenv 
"GUIX_LUA_CPATH"))))))))))
     (native-inputs
      (list cmocka ; for unit tests
            doxygen

Reply via email to