Skip to content

Commit

Permalink
flake: use shellcheck in flake checks
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingmuch committed Jan 3, 2025
1 parent 058f11a commit e932911
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@
shfmt -d -s -i 4 -ci ${src}
'';
};

shellcheck = simpleCheck rec {
name = "shell-checks";
src = pkgs.lib.sources.sourceFilesBySuffices ./. [".sh"];
nativeBuildInputs = [pkgs.shellcheck];
checkPhase = ''
shellcheck -x ${src}
'';
};
};
}
);
Expand Down

0 comments on commit e932911

Please sign in to comment.