Skip to content

Commit

Permalink
libexpr/primops: allow storePath in pure eval if pure-storepath-built…
Browse files Browse the repository at this point in the history
…in feature is enabled
  • Loading branch information
Pandapip1 committed Jan 6, 2025
1 parent 48a3467 commit 31a6fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ static RegisterPrimOp primop_toPath({
corner cases. */
static void prim_storePath(EvalState & state, const PosIdx pos, Value * * args, Value & v)
{
if (state.settings.pureEval)
if (state.settings.pureEval && !experimentalFeatureSettings.isEnabled(Xp::PureStorePathBuiltin))
state.error<EvalError>(
"'%s' is not allowed in pure evaluation mode",
"builtins.storePath"
Expand Down

0 comments on commit 31a6fef

Please sign in to comment.