This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch haskell-team
in repository guix.
The following commit(s) were added to refs/heads/haskell-team by this push:
new 8b6182b5b4b gnu: ghc-9.8: Ensure that doc output contains HTML
documentation.
8b6182b5b4b is described below
commit 8b6182b5b4b317b2c213deab65958e856f277901
Author: Sören Tempel <[email protected]>
AuthorDate: Sat Oct 24 21:59:43 2026 +0200
gnu: ghc-9.8: Ensure that doc output contains HTML documentation.
Previously, the GHC package relied on the --docdir argument passed
through the 'configure phase to the build system to ensure that the
documentation files end up in the :doc output. However, starting with
the switch from GNU Make to Hadrian, GHC upstream no longer trurly
respects the --docdir argument. Therefore, without this patch, the
documentation files and up in the normal output and increase the
package size quite a bit.
Fixes https://codeberg.org/guix/guix/issues/11796
* gnu/packages/haskell.scm (ghc-9.8): Add 'move-doc phase.
---
gnu/packages/haskell.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 56ccab3b45a..358256e65e4 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2034,6 +2034,14 @@ SRC_HC_OPTS += -optc-mno-outline-atomics
`("install"
,@make-flags
,(string-append "--prefix=" #$output)))))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out "/share/doc")
+ (string-append doc "/share/doc")))))
(add-after 'install 'remove-unnecessary-references
(lambda* (#:key outputs #:allow-other-keys)
(substitute* (find-files (string-append (assoc-ref outputs
"out") "/lib/")