Open
Description
Describe the bug
NIX_SSL_CERT_FILE
seems to be unreadable on Darwin systems with sandboxing enabled.
This breaks many things in nixpkgs, e.g. fetchgit
and rustPlatform.fetchCargoVendor
fetchCargoVendor
failure: NixOS/nixpkgs#385366
fetchgit
failure: NixOS/nixpkgs#385366 (comment)
Steps To Reproduce
Could someone with an actual darwin machine confirm this? Thanks :)
I think this is how you reproduce it
- install nix on a Darwin system
- have sandboxing enabled
- in a FOD derivation, have
impureEnvVars = lib.fetchers.proxyImpureEnvVars
(a list that containsNIX_SSL_CERT_FILE
among others) - in the FOD's build script do the following:
4.1. make sure$NIX_SSL_CERT_FILE
is actually set to the proper value instead of the fallback/no-cert-file.crt
value
4.2. docat "$NIX_SSL_CERT_FILE"
- get a permission error (which I'm assuming means that it is blocked by the sandbox)
Additional context
Using a relaxed sandbox seems to work fine.
Checklist
- checked latest Nix manual (source)
- checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.