From 69e5d2135c0d3f72d13fb5262c0c86f5c4d348ce Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 23 Jan 2026 02:00:19 +0200 Subject: [PATCH] python3: let lib.mkScopeWithSplicing do its job Fixes #476822 and #480467 . If merged, #480005 should be reverted (on branch `staging`). Co-Authored-By: Colin --- .../interpreters/python/cpython/default.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 13ede05bf2b72..b0fd13b6a928c 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -152,8 +152,6 @@ let passthru = let - # When we override the interpreter we also need to override the spliced versions of the interpreter - inputs' = lib.filterAttrs (n: v: n != "passthruFun" && !lib.isDerivation v) inputs; # Memoization of the splices to avoid re-evaluating this function for all combinations of splices e.g. # python3.pythonOnBuildForHost.pythonOnBuildForTarget == python3.pythonOnBuildForTarget by consuming # __splices as an arg and using the cache if populated. @@ -170,13 +168,9 @@ let override = attr: let - python = attr.override ( - inputs' - // { - self = python; - __splices = splices; - } - ); + python = attr.override { + self = python; + }; in python; in