mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
DerivationGoal slight cleanup of some impure drv logic
This commit is contained in:
parent
7707d0acad
commit
88275e5723
1 changed files with 2 additions and 6 deletions
|
|
@ -119,16 +119,12 @@ Goal::Co DerivationGoal::haveDerivation()
|
|||
worker.store.addTempRoot(*i.second.second);
|
||||
|
||||
{
|
||||
bool impure = drv->type().isImpure();
|
||||
|
||||
if (impure)
|
||||
experimentalFeatureSettings.require(Xp::ImpureDerivations);
|
||||
|
||||
if (auto * mOutputHash = get(staticOutputHashes(worker.evalStore, *drv), wantedOutput)) {
|
||||
outputHash = *mOutputHash;
|
||||
}
|
||||
|
||||
if (impure) {
|
||||
if (drv->type().isImpure()) {
|
||||
experimentalFeatureSettings.require(Xp::ImpureDerivations);
|
||||
/* We don't yet have any safe way to cache an impure derivation at
|
||||
this step. */
|
||||
co_return gaveUpOnSubstitution();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue