Skip to content

Commit

Permalink
DONTDROP python2: Fix alias usage on cross
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Dec 4, 2024
1 parent bd32adb commit cf50976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/python/cpython/2.7/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ let
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
"--disable-toolbox-glue"
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"PYTHON_FOR_BUILD=${lib.getBin buildPackages.python}/bin/python"
"PYTHON_FOR_BUILD=${lib.getBin buildPackages.python2}/bin/python"
"ac_cv_buggy_getaddrinfo=no"
# Assume little-endian IEEE 754 floating point when cross compiling
"ac_cv_little_endian_double=yes"
Expand Down Expand Up @@ -239,7 +239,7 @@ let
nativeBuildInputs =
[ autoreconfHook ]
++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform)
[ buildPackages.stdenv.cc buildPackages.python ];
[ buildPackages.stdenv.cc buildPackages.python2 ];

mkPaths = paths: {
C_INCLUDE_PATH = lib.makeSearchPathOutput "dev" "include" paths;
Expand Down

0 comments on commit cf50976

Please sign in to comment.