From 825a7f002c607ced057489ecd7fb1132b94c3c8b Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 9 Mar 2026 15:54:28 +0200 Subject: [PATCH] python3: avoid a small `rec` near passthruFun --- .../interpreters/python/cpython/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index c4325a4494f5..69209951c676 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -173,13 +173,19 @@ let }; in python; - in - passthruFun rec { - inherit self sourceVersion packageOverrides; - implementation = "cpython"; - libPrefix = "python${pythonVersion}${lib.optionalString (!enableGIL) "t"}"; - executable = libPrefix; pythonVersion = with sourceVersion; "${major}.${minor}"; + libPrefix = "python${pythonVersion}${lib.optionalString (!enableGIL) "t"}"; + in + passthruFun { + inherit + self + sourceVersion + packageOverrides + libPrefix + pythonVersion + ; + implementation = "cpython"; + executable = libPrefix; sitePackages = "lib/${libPrefix}/site-packages"; inherit hasDistutilsCxxPatch pythonAttr; inherit (splices)