| 29 Jul 2025 |
emily | like we're slimming down python3Minimal to use in hooks | 14:32:13 |
emily | but that's not required for bootstrapping | 14:32:17 |
emily | Darwin bootstrap builds full python3 and works fine | 14:32:22 |
emily | it's just more convenient to have a small thing | 14:32:32 |
Sandro 🐧 | I don't see where it is used in hooks | 14:33:33 |
Sandro 🐧 | it is only used in bootstrapping things where using python3 is not really possible | 14:33:46 |
emily | that is the plan | 14:34:27 |
emily | https://github.com/NixOS/nixpkgs/pull/417581 | 14:34:35 |
emily | to do less bash | 14:34:37 |
Sandro 🐧 | that's mainly cleaning up the horrible null override hacks which we stopped doing in packages some time ago | 14:36:42 |
emily | looks like IfState needs jsonschema, pyroute2, pyyaml, setproctitle, and pyroute2 has no further deps… I think plausible it'll work with python3Minimal since it is systems programmy and presumably has no use for a TLS library or such | 14:36:43 |
emily | please, this PR exists because of a conversation I had with DavHau and mweinelt in the staging room about using python3Minimal for stdenv hooks… | 14:37:09 |
emily | and it says that's the motivation in the description | 14:37:12 |
emily | I'm not just making up that being the plan :P | 14:37:34 |
Sandro 🐧 | as long as you don't leak them in nix-shell | 14:37:40 |
Sandro 🐧 | * as long as you don't leak it in nix-shell | 14:37:46 |
emily | we had regressions from overfancy Bash optimizations and agreed that slimming down Python to allow its use in hooks would be better | 14:37:52 |
emily | the hooks can just be Bash stubs that call out to a wrapped Python | 14:38:02 |
emily | (and that can be abstracted) | 14:38:10 |
emily | shouldn't be any leak | 14:38:11 |