guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 94408b93a62ae979f6ebeb9a2a0e08ed3acc78fd
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Wed Sep 23 13:20:27 2026 +0900

    gnu: llhttpish: Install a pkg-config file.
    
    * gnu/packages/node.scm (llhttpish) [#:phases] {install-pkg-config-file}: 
New.
---
 gnu/packages/node.scm | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 10ee1918ab1..88d8eda3b2a 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -685,7 +685,28 @@ devices.")
               "PREFIX=")
       #:phases
       #~(modify-phases %standard-phases
-          (replace 'configure #$set-node-path-phase))))
+          (replace 'configure #$set-node-path-phase)
+          (add-after 'install 'install-pkg-config-file
+            (lambda _
+              ;; This is an issue upstream (in llhttp) when using the
+              ;; Make-based build system (see:
+              ;; <https://github.com/nodejs/llhttp/issues/883>).
+              (let ((dest (string-append #$output "/lib/pkgconfig")))
+                (mkdir-p dest)
+                (with-directory-excursion dest
+                  (call-with-output-file "libllhttp.pc"
+                    (lambda (port)
+                      (format port "\
+prefix=~a
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libllhttp
+Description: Node.js llhttp Library
+Version: ~a
+Libs: -L${libdir} -lllhttp
+Cflags: -I${includedir}~%" #$output #$version))))))))))
     (native-inputs
      (list esbuild
            quickjs

Reply via email to