Ironically it’s usually easier to install and use open source software on macOS than in Windows, since most of it is developed for Linux, and the Mac version of Unix is close enough to make ports easy.
macOS, also the latest version High Sierra, is even certified Unix [0].
Mac has non-standard hardware yes, bespoke software hell yes, but also pretty good standard compliance when it comes to the lower level system interfaces - lower level as in below the various high level frameworks such as the UI toolkit Cocoa.
The Linux Standard Base is a superset of POSIX (Portable Operating System Interface [for Unix]), with some small incompatibilities [1]