For style, this should be `env { ENV.x11 } if OS.mac?`, but better, patch ENV.x11 and add as the first line `return unless OS.mac?`.