Skip to content

Commit

Permalink
fix: use non-overlayed Python in pipBuildHook to avoid infinite recur…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
elikoga committed Jan 10, 2025
1 parent f66ac17 commit a863d39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hooks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,17 @@ in
};

pipBuildHook =
callPackage
nonOverlayedPython.pkgs.callPackage
(
{ pip, wheel }:
makeSetupHook
({
name = "pip-build-hook.sh";
substitutions = {
inherit pythonInterpreter pythonSitePackages;
# NOTE: We have to use a non-overlayed Python here because otherwise we run into an infinite recursion
# because building of tomlkit and its dependencies also use these hooks.
pythonInterpreter = nonOverlayedPython.interpreter;
pythonSitePackages = nonOverlayedPython.sitePackages;
};
}
// (makeSetupHookArgs [ pip wheel ]))
Expand Down

0 comments on commit a863d39

Please sign in to comment.