diff --git a/pkgs/development/python-modules/recursive-pth-loader/default.nix b/pkgs/development/python-modules/recursive-pth-loader/default.nix index c49f891ec1de..23e7f0f80b62 100644 --- a/pkgs/development/python-modules/recursive-pth-loader/default.nix +++ b/pkgs/development/python-modules/recursive-pth-loader/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation { patchPhase = "cat ${./sitecustomize.py} > sitecustomize.py"; - buildPhase = "${python}/bin/${python.executable} -m compileall ."; + buildPhase = "${python.pythonForBuild}/bin/${python.pythonForBuild.executable} -m compileall ."; installPhase = ''