Re:macOS Nix setup: an alternative to Homebrew (2020)
by ianthehenry on Tuesday July 13, 2021 @05:53PM
(#27826745)
Are flakes necessary for that? I would think you could install x86_64 binaries manually by setting `system`, even on the 2.3 branch. It seems I can do the reverse thing:
But maybe you just mean that it does this automatically? That's neat, if so. And I would expect this to be a lot more annoying within a default.nix file, having to keep track of two different nixpkgs imports.
[ Parent
| on HN ]
Re:macOS Nix setup: an alternative to Homebrew (2020)
by callahad on Tuesday July 13, 2021 @06:05PM
(#27826855)
Not automatic, but as a replacement for nix-env and nix-shell, it's great. When I need an x86_64 package, I find `nix shell nixpkgs#legacyPackages.x86_64-darwin.neovim` easier to recall and reason about.
(Or `nix profile install nixpkgs#...` for a persistent version of the same)