Subject: [PATCH] gnu: bqn: Add header files to lib output

From: aecepoglu <[email-masked]>
Date: Sat, 25 Feb 2023 11:54:29 +0000

* gnu/packages/guix.scm (cbqn): Add include/bqnffi.h to lib output
---
 gnu/packages/bqn.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm
index 9b44ea7992..4d03385d21 100644
--- a/gnu/packages/bqn.scm
+++ b/gnu/packages/bqn.scm
@@ -193,11 +193,14 @@ (define-public cbqn
                 (let* ((bin (string-append (assoc-ref outputs "out")
                                            "/bin"))
                        (lib (string-append (assoc-ref outputs "lib")
-                                           "/lib")))
+                                           "/lib"))
+                       (include (string-append (assoc-ref outputs "lib")
+                                           "/include")))
                   (mkdir-p bin)
                   (rename-file "BQN" "bqn")
                   (install-file "bqn" bin)
-                  (install-file "libcbqn.so" lib))))))))
+                  (install-file "libcbqn.so" lib)
+                  (install-file "include/bqnffi.h" include))))))))
     (native-inputs (list dbqn
                          bqn-sources
                          libffi))
-- 
2.39.1