From 7638729a6746df4b37ce025c29139abef1d6e694 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Thu, 26 Mar 2026 12:24:50 +0100 Subject: [PATCH] gnu: hdf5: Move documentation to separate output. * gnu/packages/maths.scm (hdf5)[outputs]: Add 'doc'. [arguments]: Add a phase to move the documentation to the 'doc' output. Fixes guix/guix#7486 Merges guix/guix!7495 Change-Id: I9753715f270748abff9ddf8adaa64120fe167664 --- gnu/packages/maths.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index e1090a649d..5b3f3b3da7 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1865,6 +1865,7 @@ extremely large and complex data collections.") (package (name "hdf5") (version "1.14.6") + (outputs '("out" "doc")) (source (origin (method git-fetch) @@ -2015,7 +2016,12 @@ extremely large and complex data collections.") '("bin/h5hlfc" "bin/h5fc")) (("/gnu/store/[a-z0-9]*-gfortran-[0-9.]*/bin/") - ""))))))) + "")))) + (add-after 'install 'move-html-documentation + (lambda _ + (mkdir-p (string-append #$output:doc "/share")) + (rename-file (string-append #$output "/share/html") + (string-append #$output:doc "/share/html"))))))) (inputs (list libaec zlib)) (native-inputs (list bison