From f1cf8c4f5a853683494cd93acbdecedb61dfc179 Mon Sep 17 00:00:00 2001 From: tarc Date: Thu, 30 Jan 2025 12:46:25 -0300 Subject: [PATCH] checks: fix sw_vers parameter for macOSVersion (`--productVersion`, not `-productVersion`) --- modules/system/checks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/checks.nix b/modules/system/checks.nix index 8b526b35..b466f425 100644 --- a/modules/system/checks.nix +++ b/modules/system/checks.nix @@ -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'