add elfpatch

This commit is contained in:
2025-07-17 08:42:47 -05:00
committed by GigiaJ
parent ef5d547373
commit b9df627d65

View File

@@ -39,7 +39,14 @@
#:tests? #f ; no check target #:tests? #f ; no check target
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'wrap (add-after 'install 'patch-interpreter
(lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(interpreter (string-append (assoc-ref inputs "glibc")
"/lib/ld-linux-x86-64.so.2"))
(binary (string-append out "/lib/node")))
(invoke "patchelf" "--set-interpreter" interpreter binary))))
(add-after 'patch-interpreter 'wrap
(lambda _ (lambda _
(wrap-program (string-append (assoc-ref %outputs "out") "/lib/node") (wrap-program (string-append (assoc-ref %outputs "out") "/lib/node")
`("LD_LIBRARY_PATH" ":" prefix ( `("LD_LIBRARY_PATH" ":" prefix (