Skip to content

Commit ac6318c

Browse files
authored
Merge pull request #97 from DeterminateSystems/fix-duplicate-builtins
Don't register extra primops twice
2 parents 550c894 + 7f6efe9 commit ac6318c

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/libexpr/primops.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5028,12 +5028,6 @@ void EvalState::createBaseEnv(const EvalSettings & evalSettings)
50285028
addPrimOp(std::move(primOpAdjusted));
50295029
}
50305030

5031-
for (auto & primOp : evalSettings.extraPrimOps) {
5032-
auto primOpAdjusted = primOp;
5033-
primOpAdjusted.arity = std::max(primOp.args.size(), primOp.arity);
5034-
addPrimOp(std::move(primOpAdjusted));
5035-
}
5036-
50375031
/* Add a wrapper around the derivation primop that computes the
50385032
`drvPath' and `outPath' attributes lazily.
50395033

0 commit comments

Comments
 (0)