diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2023-02-04 18:04:43 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-04 18:04:43 -0300 |
commit | a411b337d6aa5dfbf6a4856c150c249f4ee13d1f (patch) | |
tree | bd1bb376d510c658312109e44a5008190da94b2a | |
parent | b4374ad49fdbf4ef26eec1c3df19a9f4317f96a1 (diff) | |
parent | f742c6d4436c26404f98c95568fd33763475dd8b (diff) |
Merge pull request #209622 from NickCao/python311-cross
python311: fix cross compilation
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 005858d31ef6..66566cf5c277 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -345,6 +345,8 @@ in with passthru; stdenv.mkDerivation { "ac_cv_computed_gotos=yes" "ac_cv_file__dev_ptmx=yes" "ac_cv_file__dev_ptc=yes" + ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform && pythonAtLeast "3.11") [ + "--with-build-python=${pythonForBuildInterpreter}" ] ++ optionals stdenv.hostPlatform.isLinux [ # Never even try to use lchmod on linux, # don't rely on detecting glibc-isms. |