diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-11-04 00:58:04 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-11-04 21:29:33 -0700 |
commit | 563a66dc314ec75fe2c936f80d83005899b0ed9c (patch) | |
tree | d52143f938355888440b0773ed83a9747cf11edb /pkgs/development/interpreters/python | |
parent | 15492ddc2974ba426ea7e17116ea7aa44fc96dcd (diff) | |
download | nixlib-563a66dc314ec75fe2c936f80d83005899b0ed9c.tar nixlib-563a66dc314ec75fe2c936f80d83005899b0ed9c.tar.gz nixlib-563a66dc314ec75fe2c936f80d83005899b0ed9c.tar.bz2 nixlib-563a66dc314ec75fe2c936f80d83005899b0ed9c.tar.lz nixlib-563a66dc314ec75fe2c936f80d83005899b0ed9c.tar.xz nixlib-563a66dc314ec75fe2c936f80d83005899b0ed9c.tar.zst nixlib-563a66dc314ec75fe2c936f80d83005899b0ed9c.zip |
python: add python.pythonOnBuildForHost
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/passthrufun.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/python/passthrufun.nix b/pkgs/development/interpreters/python/passthrufun.nix index 867027e3841c..6cb906be0a51 100644 --- a/pkgs/development/interpreters/python/passthrufun.nix +++ b/pkgs/development/interpreters/python/passthrufun.nix @@ -67,6 +67,8 @@ overrides = packageOverrides; python = self; }); + pythonOnBuildForHost_overridden = + pythonOnBuildForHost.override { inherit packageOverrides; self = pythonOnBuildForHost_overridden; }; in rec { isPy27 = pythonVersion == "2.7"; isPy37 = pythonVersion == "3.7"; @@ -89,9 +91,10 @@ in rec { pythonAtLeast = lib.versionAtLeast pythonVersion; pythonOlder = lib.versionOlder pythonVersion; inherit hasDistutilsCxxPatch; - # TODO: rename to pythonOnBuild + # TODO: deprecate # Not done immediately because its likely used outside Nixpkgs. - pythonForBuild = pythonOnBuildForHost.override { inherit packageOverrides; self = pythonForBuild; }; + pythonForBuild = pythonOnBuildForHost_overridden; + pythonOnBuildForHost = pythonOnBuildForHost_overridden; tests = callPackage ./tests.nix { python = self; |