!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

898 Members
Declaratively manage your switching, routing, wireless, tunneling and more.262 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Jul 2025
@emilazy:matrix.orgemily like we're slimming down python3Minimal to use in hooks 14:32:13
@emilazy:matrix.orgemilybut that's not required for bootstrapping14:32:17
@emilazy:matrix.orgemily Darwin bootstrap builds full python3 and works fine 14:32:22
@emilazy:matrix.orgemilyit's just more convenient to have a small thing14:32:32
@sandro:supersandro.deSandro 🐧I don't see where it is used in hooks14:33:33
@sandro:supersandro.deSandro 🐧it is only used in bootstrapping things where using python3 is not really possible 14:33:46
@emilazy:matrix.orgemilythat is the plan14:34:27
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/pull/41758114:34:35
@emilazy:matrix.orgemilyto do less bash14:34:37
@sandro:supersandro.deSandro 🐧that's mainly cleaning up the horrible null override hacks which we stopped doing in packages some time ago14:36:42
@emilazy:matrix.orgemily 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
@emilazy:matrix.orgemily 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
@emilazy:matrix.orgemilyand it says that's the motivation in the description14:37:12
@emilazy:matrix.orgemilyI'm not just making up that being the plan :P14:37:34
@sandro:supersandro.deSandro 🐧as long as you don't leak them in nix-shell 14:37:40
@sandro:supersandro.deSandro 🐧* as long as you don't leak it in nix-shell 14:37:46
@emilazy:matrix.orgemilywe had regressions from overfancy Bash optimizations and agreed that slimming down Python to allow its use in hooks would be better14:37:52
@emilazy:matrix.orgemilythe hooks can just be Bash stubs that call out to a wrapped Python14:38:02
@emilazy:matrix.orgemily(and that can be abstracted)14:38:10
@emilazy:matrix.orgemilyshouldn't be any leak14:38:11

Show newer messages


Back to Room ListRoom Version: 6