3 ms·
I tried Nix on OS X after a recent HN topic suggested it. I hate Homebrew with a passion (it's fine initially but, over time, it's always created a hard-to-clea
by curun1r 10y ago
I tried Nix on OS X after a recent HN topic suggested it. I hate Homebrew with a passion (it's fine initially but, over time, it's always created a hard-to-clean-up mess for me), so I was looking for something that could replace it for most unixy things I need to install.
I immediately ran into a showstopper bug that they've had for some time now. Apparently, they've focused on NixOS and the CA certificate configuration is borked on other platforms. This means Git, Curl and anything else that tries to use the standard OS certificate store will fail certificate validation. I know it's only one issue, but it was pernicious enough for me to nuke my Nix install and move onto something else.
At the moment, the best I can find for OS X is Rudix. The selection of available software is pathetic compared to Homebrew and Nix, but a lot of the core stuff is there and it's all packaged as a .pkg, which makes it really easy to cleanly erase installed software.
- DHowett 10y ago> packaged as a .pkg, which makes it really easy to cleanly erase installed software. In theory, but there's no package uninstaller and OS X installer packages are neither pure nor idempotent. While you can remove the files installed by one, there's no straightforward or platform-provided way to undo the changes made by their (generally unknowable) install scripts. Incidentally, Apple shipped an Xcode uninstaller; written in perl, it used lsbom and pkgutil to collect and subsequently remove the files owned by all the com.apple.dt packages complement the system-owned files or files installed by other packages.
- curun1r 10y agoYes, it's not as clean as Nix when it comes to uninstall, but using piping pkgutil to rm has never gotten my machine in as borked of a state as Homebrew inevitably does. Also, many .pkg files provide an uninstall script of their own which is almost always reliable.
- iElectric2 10y agoDid you report an issue? We might have bugs like that, but the promise of a better package manager still persist.
- curun1r 10y agoThere's many variations of this issue open. See https://github.com/NixOS/nixpkgs/issues/3382 https://github.com/NixOS/nixpkgs/issues/3382 for an example. Most are still not closed and have been open for long enough that it doesn't seem hopeful that they'll be fixed soon.
- jperkin 10y ago> At the moment, the best I can find for OS X is Rudix. The selection of available software is pathetic compared to Homebrew and Nix, but a lot of the core stuff is there and it's all packaged as a .pkg, which makes it really easy to cleanly erase installed software. Apologies for hijacking a Nix thread, but I'd love your views on our OS X binary package sets[0]. We currently ship over 14,000 pre-built signed packages, all self-contained under /opt/pkg, and easy to search/install/remove using pkgin which has a familiar feel to anyone used to apt-get/yum/etc. The packages are continuously built from pkgsrc trunk so should be reasonably up-to-date, and we try to be responsive when users need newer versions or packages built with different options. So far the feedback has been positive, but I'd love to see more use-cases so we can improve the experience for everybody. Thanks. [0] https://pkgsrc.joyent.com/install-on-osx/ https://pkgsrc.joyent.com/install-on-osx/
- curun1r 10y agoI wasn't aware of this, but it looks really promising. Thank you for posting this!