| Tim Windelschmidt | ea80025 | 2025-07-09 07:00:29 +0200 | [diff] [blame] | 1 | { pkgs }: with pkgs; |
| 2 | # Only override for our actual build | ||||
| 3 | if (!stdenv.hostPlatform.isStatic) then python3Minimal else | ||||
| 4 | python3Minimal.overrideAttrs (old: { | ||||
| 5 | # Revert "fixup" which hardcodes a nix path. | ||||
| 6 | postPatch = old.postPatch + '' | ||||
| 7 | substituteInPlace Lib/subprocess.py \ | ||||
| 8 | --replace-fail "'${bashNonInteractive}/bin/sh'" "'/bin/sh'" | ||||
| 9 | ''; | ||||
| 10 | }) | ||||