diff --git a/pkgs/development/python-modules/contourpy/default.nix b/pkgs/development/python-modules/contourpy/default.nix index 652fbbef7207..cbec2df496df 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-Qd6FC7SgFyC/BvOPWVkr2ZfKVMVAknLlidNRq3zcWU0="; }; + # 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 meson-python