Skip to content

Commit

Permalink
Merge pull request #1311 from tarc/master
Browse files Browse the repository at this point in the history
checks: fix sw_vers parameter for macOSVersion
  • Loading branch information
emilazy authored Jan 30, 2025
2 parents 349a74c + f1cf8c4 commit 49b807f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
cfg = config.system.checks;

macOSVersion = ''
IFS=. read -ra osVersion <<<"$(sw_vers --productVersion)"
IFS=. read -ra osVersion <<<"$(sw_vers -productVersion)"
if (( osVersion[0] < 11 || (osVersion[0] == 11 && osVersion[1] < 3) )); then
printf >&2 '\e[1;31merror: macOS version is less than 11.3, aborting activation\e[0m\n'
printf >&2 'Nixpkgs 25.05 requires macOS Big Sur 11.3 or newer, and 25.11 will\n'
Expand Down

0 comments on commit 49b807f

Please sign in to comment.