News for hackers. Stuff that matters.
Re:macOS Nix setup: an alternative to Homebrew (2020) by defulmere on Tuesday July 13, 2021 @03:42PM (#27825351)
The author had me until he mentioned installing ripgrep *temporarily*.

Stopped there because I don't do heresy.

Re:macOS Nix setup: an alternative to Homebrew (2020) by est31 on Tuesday July 13, 2021 @03:53PM (#27825503)
I really love the temporary installs feature of nix OS. Often I just want to try some software once and don't want to use it afterwards. The temporary install feature is perfect for that, to help avoiding building up bloat from forgotten uninstalls.

But yes, you absolutely must have ripgrep.

Re:macOS Nix setup: an alternative to Homebrew (2020) by ihumanable on Tuesday July 13, 2021 @06:34PM (#27827081)
I think one thing that's interesting about "temporary" installation is that nix has this notion of "present" vs "installed."

When you run a nix-shell the program is downloaded and if necessary built and put into the nix store, after leaving the shell it's all right there on your disk ("present") just not "installed" into the environment.

This is why the first time you run nix-shell with something new it downloads stuff while subsequent invocations are immediate. It also means that if you liked ripgrep in a shell, installing it is just has nix write out some new symlinks.

Re:macOS Nix setup: an alternative to Homebrew (2020) by stevefolta on Tuesday July 13, 2021 @05:10PM (#27826365)
"nix-shell" is exactly how I first tried ripgrep. Of course, I installed it permanently moments later.
Re:macOS Nix setup: an alternative to Homebrew (2020) by jeofken on Tuesday July 13, 2021 @05:26PM (#27826515)
It’s with you for eternity, just hidden from programs unworthy of its excellence. Immutable is forever :)
Re:macOS Nix setup: an alternative to Homebrew (2020) by kaba0 on Wednesday July 14, 2021 @06:26AM (#27831495)
Until you run the gc :D

My record with nix-collect-garbage was like 30 GB. I since enable the auto-gc.

Re:macOS Nix setup: an alternative to Homebrew (2020) by pxc on Tuesday July 13, 2021 @04:36PM (#27825986)
Seconded! I think ripgrep is my favorite of all of these next-gen fundamental CLI tools.

For me, it replaces both grep and sed (except for in-place use of the latter), because I never write complicated sed programs.

Re:macOS Nix setup: an alternative to Homebrew (2020) by luckyorlame on Tuesday July 13, 2021 @04:13PM (#27825722)
" I don't do heresy." please explain.
Re:macOS Nix setup: an alternative to Homebrew (2020) by jahnu on Tuesday July 13, 2021 @04:20PM (#27825793)
It's a joke that they they love and depend on ripgrep so much that to uninstall it would be an act tantamount to heresy
Re:macOS Nix setup: an alternative to Homebrew (2020) by haskal on Tuesday July 13, 2021 @04:30PM (#27825914)
Just replace "ripgrep" with "cowsay" or "neofetch" and read again.