News for hackers. Stuff that matters.
Re:macOS Nix setup: an alternative to Homebrew (2020) by stockholm_sloth on Tuesday July 13, 2021 @04:03PM (#27825606)
Interesting read as I am a huge OSX and CLI fan. Thanks for that! I too am worried by the root file system "security enhancements" in recent versions of OSX that make it harder and harder for me to do my job (develop website backends).

However I may wait to try Nix until it has better support for my primary tools (mainly php and ruby based websites) ... because I LOVE the simplicity of homebrew. And if there are any homebrew developers reading this, I frickin' love you guys. You make everything I need to do extremely easy.

Re:macOS Nix setup: an alternative to Homebrew (2020) by FullyFunctional on Tuesday July 13, 2021 @04:37PM (#27825990)
Indeed, as a newcomer to Nix I was immediately put off by the arcaness of everything. I don't want my first experience to be memorized obscure paths and funky command line arguments (such may justified _later_ when more advanced options are wanted). I'm glad it works for people and I gather nix-env is a step in the right direction, but it's IMO not quite there yet.

EDIT: example, why is it

    nix-env -qaP git
instead of

    nix search git
Re:macOS Nix setup: an alternative to Homebrew (2020) by ianthehenry on Tuesday July 13, 2021 @04:58PM (#27826235)
It actually is! There are lots of examples of arcane Nix commands, but as of Nix 2.0, you actually can type `nix search git`. And it works much better than `nix-env -qa` ever did.

Your point stands, though. For example, why is it:

    nix-env -iA nixpkgs.git
Instead of:

    nix install git
(I know what the answer is, but still, it's a question that I think a lot of newcomers are going to ask.)
Re:macOS Nix setup: an alternative to Homebrew (2020) by carlthome on Sunday July 18, 2021 @07:03PM (#27877487)
Newcomer here. What's the answer?
Re:macOS Nix setup: an alternative to Homebrew (2020) by SavantIdiot on Tuesday July 13, 2021 @05:48PM (#27826695)
If php and ruby are your primary packages, why would you need something other than macports? Both are up to date with the latest versions.
Re:macOS Nix setup: an alternative to Homebrew (2020) by stockholm_sloth on Friday July 16, 2021 @03:29PM (#27860239)
Cool response. In your opinion, what advantage does Macports offer over homebrew? I'll admit When I read tutorials on new frameworks, tools, etc, they almost always assume everyone uses homebrew. So (perhaps lazily) I just did the same.