3 ms·
There are no global state mutations in `pkgs`. All immutable parts are in `impure.nix`, which already has a complete `pkgs`. Maybe you are confusing state muta
by Profpatsch 9y ago
There are no global state mutations in `pkgs`. All immutable parts are in `impure.nix`, which already has a complete `pkgs`.
Maybe you are confusing state mutations with fixed points, which are used extensively (thankfully).
- drawnwren 9y agoThere are no global state mutations in pkgs until you need a custom package, and then you're overriding the global state with your own custom state.
- vertex-four 9y agoThat does not modify global state - it creates a new state from the old one + your modifications.
- dom0 9y agoIn other words, it modifies global state.
- vertex-four 9y agoI expect that your issue is more with the fact that there is a mega state object that contains almost everything - not that it is somehow global, which it isn't. You can't access it unless it is passed to you.