1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 05:26:02 +01:00

Merge pull request #97 from DeterminateSystems/fix-duplicate-builtins

Don't register extra primops twice
This commit is contained in:
Graham Christensen 2025-06-11 13:10:23 +00:00 committed by GitHub
commit ac6318c9c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.