nixpkgs-manual.epub: use structuredAttrs instead of passAsFile (#515681)

This commit is contained in:
Philip Taron
2026-05-18 21:25:56 +00:00
committed by GitHub
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -37,16 +37,16 @@ runCommand "manual.epub"
</book>
'';
passAsFile = [ "epub" ];
__structuredAttrs = true;
}
''
mkdir scratch
xsltproc \
printf "%s" "$epub" | xsltproc \
--param chapter.autolabel 0 \
--nonet \
--output scratch/ \
${docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl \
$epubPath
-
echo "application/epub+zip" > mimetype
zip -0Xq -b "$TMPDIR" "$out" mimetype
+3 -3
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"