1 # To build this derivation, run `nix-build -A nixpkgs-manual.epub`
9 runCommand "manual.epub"
17 <book xmlns="http://docbook.org/ns/docbook"
18 xmlns:xlink="http://www.w3.org/1999/xlink"
20 xml:id="nixpkgs-manual">
22 <title>Nixpkgs Manual</title>
23 <subtitle>Version ${lib.version}</subtitle>
26 <title>Temporarily unavailable</title>
28 The Nixpkgs manual is currently not available in EPUB format,
29 please use the <link xlink:href="https://nixos.org/nixpkgs/manual">HTML manual</link>
33 If you've used the EPUB manual in the past and it has been useful to you, please
34 <link xlink:href="https://github.com/NixOS/nixpkgs/issues/237234">let us know</link>.
40 passAsFile = [ "epub" ];
45 --param chapter.autolabel 0 \
48 ${docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl \
51 echo "application/epub+zip" > mimetype
52 zip -0Xq -b "$TMPDIR" "$out" mimetype
53 cd scratch && zip -Xr9D -b "$TMPDIR" "$out" *