1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-25 19:51:00 +01:00

Don't register extra primops twice

This was the result of a bad merge.
This commit is contained in:
Eelco Dolstra 2025-06-11 13:06:14 +02:00
parent 96874f418d
commit 7f6efe93e4

View file

@ -5028,12 +5028,6 @@ void EvalState::createBaseEnv(const EvalSettings & evalSettings)
addPrimOp(std::move(primOpAdjusted));
}
for (auto & primOp : evalSettings.extraPrimOps) {
auto primOpAdjusted = primOp;
primOpAdjusted.arity = std::max(primOp.args.size(), primOp.arity);
addPrimOp(std::move(primOpAdjusted));
}
/* Add a wrapper around the derivation primop that computes the
`drvPath' and `outPath' attributes lazily.