From 74fec72eaf648c66249fdfe4a1aca052cc459a05 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Fri, 9 Feb 2024 21:16:23 -0500 Subject: [PATCH] Fix deprecated pythonForBuild usages --- distros/ament-cmake-core-setup-hook/default.nix | 2 +- distros/ros2-overlay.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distros/ament-cmake-core-setup-hook/default.nix b/distros/ament-cmake-core-setup-hook/default.nix index 1ae8bf0fd5..5f258ada83 100644 --- a/distros/ament-cmake-core-setup-hook/default.nix +++ b/distros/ament-cmake-core-setup-hook/default.nix @@ -2,5 +2,5 @@ makeSetupHook { name = "ament-cmake-core-setup-hook"; - substitutions.python_executable = python.pythonForBuild.interpreter; + substitutions.python_executable = python.pythonOnBuildForHost.interpreter; } ./setup-hook.sh diff --git a/distros/ros2-overlay.nix b/distros/ros2-overlay.nix index 838c43a6be..7c0bd208f2 100644 --- a/distros/ros2-overlay.nix +++ b/distros/ros2-overlay.nix @@ -77,7 +77,7 @@ rosSelf: rosSuper: with rosSelf.lib; { python-cmake-module = rosSuper.python-cmake-module.overrideAttrs ({ ... }: let python = rosSelf.python; in { - pythonExecutable = python.pythonForBuild.interpreter; + pythonExecutable = python.pythonOnBuildForHost.interpreter; pythonLibrary = "${python}/lib/lib${python.libPrefix}.so"; pythonIncludeDir = "${python}/include/${python.libPrefix}"; setupHook = ./python-cmake-module-setup-hook.sh;