From cf50976bc13dd6929c3d10a4f53268ca72f66778 Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 4 Dec 2024 21:53:50 +0200 Subject: [PATCH] DONTDROP python2: Fix alias usage on cross --- pkgs/development/interpreters/python/cpython/2.7/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/2.7/default.nix b/pkgs/development/interpreters/python/cpython/2.7/default.nix index 7e926d682810be..690f0620541b3b 100644 --- a/pkgs/development/interpreters/python/cpython/2.7/default.nix +++ b/pkgs/development/interpreters/python/cpython/2.7/default.nix @@ -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" @@ -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;