diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-10-03 20:29:58 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-10-03 20:33:01 +0200 |
commit | ebdd89601790fdab980de2fb20f258976678d658 (patch) | |
tree | 98c8ebbb4ef678311bc293d3e606d2d370498df2 /doc/default.nix | |
parent | 96a1e782a627da8d2a149cbc42162b104b216558 (diff) |
Nixpkgs manual: Fix epub generation
Diffstat (limited to 'doc/default.nix')
-rw-r--r-- | doc/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/default.nix b/doc/default.nix index 03134cf4cc86..625c716b0319 100644 --- a/doc/default.nix +++ b/doc/default.nix @@ -97,7 +97,9 @@ pkgs.stdenv.mkDerivation { cp -r $dst/images $dst/epub/OEBPS echo "application/epub+zip" > mimetype - zip -0Xq "$dst/Nixpkgs Contributors Guide - NixOS community.epub" mimetype - zip -Xr9D "$dst/Nixpkgs Contributors Guide - NixOS community.epub" $dst/epub/* + manual="$dst/nixpkgs-manual.epub" + zip -0Xq "$manual" mimetype + cd $dst/epub && zip -Xr9D "$manual" * + rm -rf $dst/epub ''; } |