mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge pull request #14306 from corngood/develop-structuredAttrs-fix
nix/develop: Strip outputChecks when structuredAttrs is enabled
This commit is contained in:
commit
67f5cb97a3
1 changed files with 9 additions and 4 deletions
|
|
@ -254,10 +254,15 @@ static StorePath getDerivationEnvironment(ref<Store> store, ref<Store> evalStore
|
|||
drv.args = {store->printStorePath(getEnvShPath)};
|
||||
|
||||
/* Remove derivation checks. */
|
||||
drv.env.erase("allowedReferences");
|
||||
drv.env.erase("allowedRequisites");
|
||||
drv.env.erase("disallowedReferences");
|
||||
drv.env.erase("disallowedRequisites");
|
||||
if (drv.structuredAttrs) {
|
||||
drv.structuredAttrs->structuredAttrs.erase("outputChecks");
|
||||
} else {
|
||||
drv.env.erase("allowedReferences");
|
||||
drv.env.erase("allowedRequisites");
|
||||
drv.env.erase("disallowedReferences");
|
||||
drv.env.erase("disallowedRequisites");
|
||||
}
|
||||
|
||||
drv.env.erase("name");
|
||||
|
||||
/* Rehash and write the derivation. FIXME: would be nice to use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue