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;