python3: Remove unneeded override in passthruFun

`pythonOnBuildForHost` is already overriden when it is passed to
`passthruFun` remove redundant override. Performace is slightly better
~200MB less memory.
This commit is contained in:
Timothy Gallion 2025-03-30 16:10:39 -04:00
parent c59bac08bd
commit 0ce0b01c12
No known key found for this signature in database
GPG Key ID: 5A2DAA31F5457F29

View File

@ -106,10 +106,6 @@ let
python = self;
}
);
pythonOnBuildForHost_overridden = pythonOnBuildForHost.override {
inherit packageOverrides;
self = pythonOnBuildForHost_overridden;
};
in
rec {
isPy27 = pythonVersion == "2.7";
@ -144,7 +140,7 @@ rec {
pythonAtLeast = lib.versionAtLeast pythonVersion;
pythonOlder = lib.versionOlder pythonVersion;
inherit hasDistutilsCxxPatch;
pythonOnBuildForHost = pythonOnBuildForHost_overridden;
inherit pythonOnBuildForHost;
tests = callPackage ./tests.nix {
python = self;