I've been storing my FLAC files as ALAC for iTunes compatibility for the past decade. Max.app on macOS, while old and creaky looking, does a fine job of transcoding them and maintaining tags.
(And if compilation fails with a specific weird error about corefoundation corevideo coreaudio etc, uninstall and reinstall your macOS command line tools, because they're broken; `sudo rm -rf /Library/Developer/CommandLineTools ; xcode-select --install` will do that.)
Well if you want to try Nix, https://github.com/NixOS/nixpkgs/blob/9dba669e8a53f00114b53d... right out of the box :D
Sure, if you don't have any use for iTunes or iOS FLAC is the obvious choice, but if you do use iTunes there's really no need to keep two formats around. Just use ALAC.