I feel like that brew, or better yet, nix are great options for userspace applications in Linux and macOS
Sure, there are other options for this. But this is certainly a use case for guix, which is what the poster was asking about.