From 7f6efe93e434501bd7743dd9b2358a7de557914e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Jun 2025 13:06:14 +0200 Subject: [PATCH] Don't register extra primops twice This was the result of a bad merge. --- src/libexpr/primops.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index bd4168a44..6b5c33806 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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.