diff --git a/pkgs/development/python-modules/contourpy/default.nix b/pkgs/development/python-modules/contourpy/default.nix index de2f96a8a93d..e164297e21e7 100644 --- a/pkgs/development/python-modules/contourpy/default.nix +++ b/pkgs/development/python-modules/contourpy/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + python, pythonOlder, # build @@ -39,6 +40,12 @@ let hash = "sha256-QvAIV2Y8H3oPZCF5yaqy2KWfs7aMyRX6aAU5t8E9Vpo="; }; + # prevent unnecessary references to the build python when cross compiling + postPatch = '' + substituteInPlace lib/contourpy/util/_build_config.py.in \ + --replace-fail '@python_path@' "${python.interpreter}" + ''; + nativeBuildInputs = [ meson ninja