Skip to content

macOS only formula #4914

Nov 19, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

If you want to restrict it to macOS, you'll need to add depends_on :macos. This can work in addition to what you have.

It's perhaps a little confusing, but depends_on macos: :sonoma just says that the minimum macOS should be Sonoma, rather than it needs to be macOS. It makes a little more sense when you consider formulae that do support both macOS and Linux, but just don't work on some older macOS. Perhaps we should have named it depends_on minimum_macos: :sonoma, but it comes from a time when we didn't support Linux at all.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@quackerex
Comment options

@quackerex
Comment options

@Bo98
Comment options

Answer selected by quackerex
@quackerex
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants