News for hackers. Stuff that matters.
Re:Recent version of Handbrake download infected with malware by drawnwren on Saturday May 06, 2017 @06:40PM (#14282653)
It's not Haskell, strictly speaking. There are some weird global state mutations in NixOS (I.e. the pkgs object) that aren't as intuitive as you'd like. Also, the novel file structure makes composing packages that aren't already built to do so quite difficult. Trying to get eclimd to work with emacs and eclipse was a giant pain.
Re:Recent version of Handbrake download infected with malware by Profpatsch on Saturday May 06, 2017 @08:17PM (#14283082)
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).

Re:Recent version of Handbrake download infected with malware by drawnwren on Saturday May 06, 2017 @09:16PM (#14283303)
There 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.
Re:Recent version of Handbrake download infected with malware by vertex-four on Sunday May 07, 2017 @05:02AM (#14284546)
That does not modify global state - it creates a new state from the old one + your modifications.
Re:Recent version of Handbrake download infected with malware by dom0 on Sunday May 07, 2017 @05:24AM (#14284600)
In other words, it modifies global state.
Re:Recent version of Handbrake download infected with malware by vertex-four on Sunday May 07, 2017 @05:38AM (#14284639)
I 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.