nix: enable build-use-sandbox for Android

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-07-27 22:57:41 +02:00
parent 86700f2b5c
commit 0be5f5d8d0
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 0 deletions

View File

@ -9,3 +9,5 @@ max-jobs = auto
# Helps avoid removing currently used dependencies via garbage collection
keep-derivations = true
keep-outputs = true
# Extra isolation for network and filesystem, doesn't work on MacOS
build-use-sandbox = false

View File

@ -63,6 +63,7 @@ if [[ "$(uname -s)" =~ Darwin ]]; then
)
else
nixOpts+=(
"--option" "build-use-sandbox" "true"
"--option" "extra-sandbox-paths" "${KEYSTORE_PATH} ${SECRETS_FILE_PATH}"
)
fi