aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-10-26 16:55:57 +0200
committerregnat <rg@regnat.ovh>2021-11-03 06:51:32 +0100
commit5b2aa61f1b8fe253c963874ccb4700f6ff99526e (patch)
tree9866c880ea993b9d6f36b5d1ab47ccb23f8eea78 /src/libexpr
parent886ad0055f20ca70247b1290759903f244c27f88 (diff)
Don’t require `ca-derivations` when `__contentAddressed = false`
If we explicitely opt-out of it, there’s no need to require the experimental feature
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 6b3cafec8..f05cca169 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -985,8 +985,9 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
}
if (i->name == state.sContentAddressed) {
- settings.requireExperimentalFeature(Xp::CaDerivations);
contentAddressed = state.forceBool(*i->value, pos);
+ if (contentAddressed)
+ settings.requireExperimentalFeature(Xp::CaDerivations);
}
/* The `args' attribute is special: it supplies the