Merge pull request #7312 from layus/fixed-output-system-cert

Allow system certs access to fixed-output derivations
This commit is contained in:
Eelco Dolstra 2023-05-19 13:05:16 +02:00 committed by GitHub
commit e31d9b910d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1776,6 +1776,8 @@ void LocalDerivationGoal::runChild()
for (auto & path : { "/etc/resolv.conf", "/etc/services", "/etc/hosts" })
if (pathExists(path))
ss.push_back(path);
dirsInChroot.emplace(settings.caFile, "/etc/ssl/certs/ca-certificates.crt");
}
for (auto & i : ss) dirsInChroot.emplace(i, i);