News for hackers. Stuff that matters.
Re:Nix as OS X Package Manager by arianvanp on Wednesday May 25, 2016 @05:38PM (#11773345)
I did this too until there was a glibc vulnerability. and it took ages for a 'patch' to come out that had to be installed in an obscure way.

For a toy project this is not a problem of course. But before I'd use nixos in production, it needs a better story for security patches. If you try to look up the word 'security' you get viagra spam on their wiki. and there is no security mailinglist whatsoever iirc.

I'm sure this will improve over time though. And for development, nix is still a saviour.

Re:Nix as OS X Package Manager by lfam on Wednesday May 25, 2016 @05:57PM (#11773461)
In Guix, we address this problem with grafting.

Rather than rebuild everything that depends on the fixed glibc, we build the fixed glibc, then rewrite all references to the old glibc to refer to the new one. That rewriting happens in new copies of the referring packages, of course, since the "store" is immutable.

https://www.gnu.org/software/guix/manual/html_node/Security-... https://savannah.gnu.org/forum/forum.php?forum_id=8470

Re:Nix as OS X Package Manager by jb55 on Wednesday May 25, 2016 @07:16PM (#11773946)
Nix has a way of doing this as well, just needs a better UX (like most of nix).
Re:Nix as OS X Package Manager by msiebuhr on Thursday May 26, 2016 @07:27AM (#11777097)
I was quite surprised that `nix install vim` didn't work out of the box. More so after realising that there's not even a `nix` command.

I see that there's a bunch of `nix-whatever` tools around, but even their names aren't much sensible.

I'm not in doubt that nix is technically superior to homebrew, but UX-wise it's at least been a disappointing experience for me.

Re:Nix as OS X Package Manager by panglott on Thursday May 26, 2016 @09:58AM (#11777968)
What Nix for Mac needs more than anything is a great, simple overview of how to use it in practice, for casual users. I use it as my main package manager, but I install software with it rarely enough that I need to dig around in the manpages every time.
Re:Nix as OS X Package Manager by technomancy on Thursday May 26, 2016 @12:36AM (#11775473)
> just needs a better UX

Luckily guix is a better UX for nix. =)

Re:Nix as OS X Package Manager by zenlikethat on Thursday May 26, 2016 @11:24AM (#11778614)
Doesn't this affect the promised reproducibility of builds?
Re:Nix as OS X Package Manager by lfam on Thursday May 26, 2016 @12:49PM (#11779432)
You end up with a new, grafted dependency graph, which can be reproduced just like the un-grafted graph. Is there some other reproducibility issue you see?
Re:Nix as OS X Package Manager by davexunit on Thursday May 26, 2016 @12:16PM (#11779142)
No, there's no compromise there.