Skip to content

Commit

Permalink
python312Packages.contourpy: fix cross compilation (#328218)
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Dec 14, 2024
2 parents fda024b + e5226da commit 0e8900f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/python-modules/contourpy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,

# build
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0e8900f

Please sign in to comment.