From cf10b2c735d0621c2b9bd0985245aaedcb4c2c5b Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Wed, 20 Nov 2024 15:50:32 -0700 Subject: [PATCH] Ignore unused INSTALLING_HOMEBREW shellcheck error in older nix-darwin versions Probably better to just ignore it instead :/ Ref: #48. --- modules/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/default.nix b/modules/default.nix index 07ab7a1..84aa9f2 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -503,6 +503,8 @@ in { # disable the install homebrew check # see https://github.com/LnL7/nix-darwin/pull/1178 and https://github.com/zhaofengli/nix-homebrew/issues/45 system.checks.text = lib.mkIf config.homebrew.enable (lib.mkBefore '' + # Ignore unused variable in nix-darwin versions without it + # shellcheck disable=SC2034 INSTALLING_HOMEBREW=1 ''); };