mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
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
This commit is contained in:
parent
8457723d0a
commit
16007071b4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue