manualEpub: use structuredAttrs instead of passAsFile

This commit is contained in:
Stefan Frijters
2026-05-02 12:31:13 +02:00
parent 33a3189064
commit 0d72b17e50

View File

@@ -250,17 +250,17 @@ rec {
</chapter>
</book>
'';
passAsFile = [ "doc" ];
__structuredAttrs = true;
}
''
# Generate the epub manual.
dst=$out/${common.outputPath}
xsltproc \
printf "%s" "$doc" | xsltproc \
--param chapter.autolabel 0 \
--nonet --xinclude --output $dst/epub/ \
${docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl \
$docPath
-
echo "application/epub+zip" > mimetype
manual="$dst/nixos-manual.epub"