Commit 16007071 authored by Nathan Henrie's avatar Nathan Henrie Committed by Valentin Gagarin
Browse files

docs: allow building in sandbox on darwin

For whatever reason `zip` in this case doesn't seem to be respecting the
`$TMP` or `$TMPDIR` variables, resulting in a permission denied error on
Darwin when sandbox is enabled.

The `-b` flag allows one to manually specify a tempdir, which allows the
build to succeed in spite of sandboxing.

Fixes https://github.com/NixOS/nixpkgs/issues/326380
parent 8457723d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -69,8 +69,8 @@ let
      $epubPath

    echo "application/epub+zip" > mimetype
    zip -0Xq "$out" mimetype
    cd scratch && zip -Xr9D "$out" *
    zip -0Xq -b "$TMP" "$out" mimetype
    cd scratch && zip -Xr9D -b "$TMP" "$out" *
  '';

  # NB: This file describes the Nixpkgs manual, which happens to use module