diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 7656ee8739..021181bd8f 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -607,8 +607,9 @@ (define-public astyle (lambda _ (chdir "build/gcc") #t)) (add-after 'install 'install-libs (lambda* (#:key outputs #:allow-other-keys) - ;; Libraries are not installed by default + ;; Libraries and includes are not installed by default (let* ((output (assoc-ref outputs "out")) + (incdir (string-append output "/include")) (libdir (string-append output "/lib"))) (define (make-so-link sofile strip-pattern) (symlink @@ -616,6 +617,9 @@ (define (make-so-link sofile strip-pattern) (regexp-substitute #f (string-match strip-pattern sofile) 'pre))) + (mkdir-p incdir) + (copy-file "../../src/astyle.h" + (string-append incdir "/astyle.h")) (mkdir-p libdir) (for-each (lambda (l) (copy-file