Skip to content

Commit

Permalink
python3Packages.contourpy: fix cross build
Browse files Browse the repository at this point in the history
nuke-refs was used incorrectly
  • Loading branch information
DavHau committed Jan 19, 2025
1 parent 6d43eca commit 8adce94
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkgs/development/python-modules/contourpy/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
lib,
buildPackages,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
python3,

# build
meson,
Expand Down Expand Up @@ -90,8 +88,7 @@ let

# remove references to buildPackages.python3, which is not allowed for cross builds.
preFixup = ''
nuke-refs -e "${buildPackages.python3}" \
$out/${python3.sitePackages}/contourpy/util/{_build_config.py,__pycache__/_build_config.*}
nuke-refs $out/${python.sitePackages}/contourpy/util/{_build_config.py,__pycache__/_build_config.*}
'';

meta = with lib; {
Expand Down

0 comments on commit 8adce94

Please sign in to comment.