News for hackers. Stuff that matters.
Re:Nix as OS X Package Manager by AceJohnny2 on Wednesday May 25, 2016 @04:51PM (#11772972)
I was forcefully relocated from my comfortable decade-old Debian home into OS X, and the package management here in unsatisfying.

I'm looking forward to future posts that show how Nix is better than Homebrew or MacPorts, because that hasn't been demonstrated so far.

And as a bikeshed nitpick, I was always unhappy with the meaningless rpm options, preferring apt's clearer options (rpm -qa vs aptitude search). I'm a bit disappointed that nix chose to mimic rpm's style. Oh well, tomayto/tomahto.

Re:Nix as OS X Package Manager by SwellJoe on Wednesday May 25, 2016 @08:13PM (#11774209)
"I'm looking forward to future posts that show how Nix is better than Homebrew or MacPorts, because that hasn't been demonstrated so far."

Homebrew is downright dangerous (I've written about why: http://inthebox.webmin.com/homebrew-package-installation-for... ).

MacPorts is fine. Not wonderful, but OK. Not reproducible in the way Nix is.

PkgSrc is also pretty good. Also not reproducible the way Nix is. But, the packaging policies are good, the packages tend to be well-thought out, and the technical solution to stuff like dependency resolution is pretty OK. The people building and maintaining PkgSrc know what they're doing.

Nix is clearly superior to all of them, however, in being reproducible, easy to roll-back in a predictable way (try going backward with almost any other package manager, even RPM/yum and dpkg/apt can't do that...I love'em both, but recognize that we now have better solutions to package management). Nix is just a fundamentally better tool.

Flatpak is another really promising packaging technology with some of the same benefits (but it's tackling things in a different way; I think I still have to consider Nix a better overall solution; it is certainly simpler in both implementation and usage, for packagers/developers and end users).

But, don't use Homebrew. For now, PkgSrc is probably the best method of getting a lot of reasonably good packages for Mac OS X. Nix will be the better option eventually, once there's a lot of people packaging for it (assuming people get over their bizarre love affair with Homebrew and start working with Nix, instead).

Re:Nix as OS X Package Manager by eridius on Wednesday May 25, 2016 @10:02PM (#11774707)
Homebrew is not dangerous. Please don't spread FUD.

Your link specifically covers the case of Homebrew on the server. But Homebrew isn't meant to be a server package manager. It's an OS X package manager, and OS X is a desktop operating system, not something that most people choose to use as a server (OS X Server exists but is primarily used for intranet stuff rather than as a production server). The complaints that your link has are only problems for an external-facing server. They're not problems for desktop use. And the simple answer to that is: don't use a desktop package manager on your server.

Re:Nix as OS X Package Manager by ghshephard on Wednesday May 25, 2016 @10:46PM (#11774945)
Totally agreed. Homebrew is not an appropriate tool for server package management (It assumes everything should be installed under a single user account)- but 98-99%+ of the people that use OS X and servers are not running OS X on their servers, macmini colo users excepted.

The wording dangerous was poorly used, inappropriate for server package management would have been better.

Re:Nix as OS X Package Manager by mikemcquaid on Thursday May 26, 2016 @04:32AM (#11776487)
"inappropriate for server package management" is totally fair. That's why we try to generally default to only listening on localhost.
Re:Nix as OS X Package Manager by SwellJoe on Thursday May 26, 2016 @01:35AM (#11775748)
I had no trouble finding people talking about using it on servers during my research. I even found people wanting it and discussing porting it for use on Linux (which is among the most ridiculous suggestions I can imagine, since Linux has an embarrassment of riches in terms of good and great package management options).

So, yes, to be clear: The dangers of Homebrew are primarily when considering it for use in a server context. I personally wouldn't use it anywhere. But, it has many good qualities that many people value highly.

Re:Nix as OS X Package Manager by eridius on Thursday May 26, 2016 @02:40AM (#11776071)
The people who are trying to use it on servers are misguided. The people who are trying to use it on Linux are just crazy. Homebrew itself has never pretended to be anything other than an OS X package manager aimed at desktop users.

If you want to say "Homebrew is dangerous when used on a public-facing server", that's entirely fair. But that's not what you said. I'm glad that you do recognize this distinction though, and I hope you will think twice before claiming again that Homebrew is dangerous without qualification.

Re:Nix as OS X Package Manager by benley on Wednesday May 25, 2016 @06:24PM (#11773634)
There's a new commandline tool in the works that will improve all those interfaces; I'm not sure how far along it is, though. Here's the discussion: https://github.com/NixOS/nix/issues/779
Re:Nix as OS X Package Manager by mhd on Wednesday May 25, 2016 @05:08PM (#11773104)
To continue picking nits, that's apples/apple pie, not tomatoes. rpm's equivalent is dpkg, not aptitude (whose match would be yum/dnf/zypper).
Re:Nix as OS X Package Manager by speedkills on Wednesday May 25, 2016 @11:58PM (#11775287)
I heard the hype. Figured I would give it a try. Installed emacs with nix Install spacemacs on top of new emacs. Throws odd errors. Uninstall emacs with nix

Install emacs with brew Install spacemacs on top of emacs It works!

To pull users from brew it needs to work at least as well, especially for common tools like emacs. Go check out the number of issues related just to emacs installs, it is kind of amazing.

Re:Nix as OS X Package Manager by Ericson2314 on Thursday May 26, 2016 @01:37AM (#11775762)
Spacemacs is pretty complex with its own updating logic too. We really want to package it but I don't think anybody had gotten around to it then.

Just about everything else I'd like to use is packaged, so Id like to think we're over the adoption-pkg-count chicken egg problem.

Re:Nix as OS X Package Manager by doublerebel on Wednesday May 25, 2016 @06:34PM (#11773689)
Try pkgsrc. It's much more like apt than nix, macports, or homebrew.
Re:Nix as OS X Package Manager by aorth on Thursday May 26, 2016 @01:53AM (#11775842)
pkgsrc is great and I prefer it to Homebrew on Mac OS X, but it only updates quarterly. :(
Re:Nix as OS X Package Manager by jperkin on Thursday May 26, 2016 @02:14AM (#11775940)
Not true any longer, at least for the binary packages I produce[0]. I switched them over to trunk-based builds a while ago, which are updated every few days.

[0] https://pkgsrc.joyent.com/install-on-osx/

Re:Nix as OS X Package Manager by mseri on Thursday May 26, 2016 @04:48AM (#11776537)
How is situation with python3 on osx? Last time I used pkgin, it was not compiled as Framework preventing some libraries to work properly
Re:Nix as OS X Package Manager by jperkin on Thursday May 26, 2016 @09:12AM (#11777606)
They're all available:

    $ pkgin se python3
    python35-3.5.1nb2    Interpreted, interactive, object-oriented programming language
    python34-3.4.4       Interpreted, interactive, object-oriented programming language
    python33-3.3.6nb3    Interpreted, interactive, object-oriented programming language
along with a bunch of pre-packaged modules:

    $ pkgin avail | grep ^py3 | wc -l
        1412
Let me know if anything you need is missing and I'll add it.
Re:Nix as OS X Package Manager by mseri on Monday May 30, 2016 @06:36PM (#11803607)
Thanks. I had to look back at my notes. I had issues with matplotlib and few other packages at the time with python 3.4, due to python not being built as framework.

I have just found a related issue: https://github.com/joyent/pkgsrc/issues/331 Unfortunately, from what I read there, I have still to use homebrew or install from python.org (with those I have no issue). I really enjoyed pkgin otherwise.

Re:Nix as OS X Package Manager by brobinson on Wednesday May 25, 2016 @06:11PM (#11773544)

    apt-cache search
aptitude isn't necessarily installed.
Re:Nix as OS X Package Manager by david-given on Wednesday May 25, 2016 @06:34PM (#11773691)
<even more tangential>

The new apt, if you have it, now combines apt-get with apt-cache plus a bunch of UI improvements.

    apt search ...
    apt install ...
If you've got it, it's well worth a look.