Skip to content

Commit

Permalink
Merge pull request NixOS#6993 from matthewbauer/dont-read-derivation-…
Browse files Browse the repository at this point in the history
…in-goal

Don’t readDerivation if impure derivations feature is disabled
  • Loading branch information
thufschmitt authored and Minion3665 committed Feb 23, 2023
2 parents e6a4d86 + 4955bb8 commit 6199fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/build/derivation-goal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void DerivationGoal::gaveUpOnSubstitution()
for (auto & i : dynamic_cast<Derivation *>(drv.get())->inputDrvs) {
/* Ensure that pure, non-fixed-output derivations don't
depend on impure derivations. */
if (drv->type().isPure() && !drv->type().isFixed()) {
if (settings.isExperimentalFeatureEnabled(Xp::ImpureDerivations) && drv->type().isPure() && !drv->type().isFixed()) {
auto inputDrv = worker.evalStore.readDerivation(i.first);
if (!inputDrv.type().isPure())
throw Error("pure derivation '%s' depends on impure derivation '%s'",
Expand Down

0 comments on commit 6199fb1

Please sign in to comment.