I use pkgsrc, which also comes with binary packages through pkgin, although I rarely need to compile things myself.
https://pkgsrc.joyent.com/install-on-macos/
Anything that nix does better than pkgsrc?
https://pkgsrc.joyent.com/install-on-macos/
Anything that nix does better than pkgsrc?
Now I've moved partially to homebrew due to better community support - and lack of arm builds for macports.