Skip to content

Commit

Permalink
Created nix app (run-lints) that runs all lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
HU90m committed Jun 10, 2024
1 parent ea91199 commit 2d8f09c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
esac
'';
};
run-lints = pkgs.writeShellApplication {
name = "run-lints";
text = ''
${getExe pkgs.reuse} lint
${getExe clang-lint} check
'';
};
in {
formatter = pkgs.alejandra;
devShells = rec {
Expand All @@ -69,9 +76,15 @@
'';
};
};
apps.clang-lint = {
type = "app";
program = getExe clang-lint;
apps = {
run-lints = {
type = "app";
program = getExe run-lints;
};
clang-lint = {
type = "app";
program = getExe clang-lint;
};
};
checks = {
clang-checks = pkgs.stdenvNoCC.mkDerivation {
Expand Down

0 comments on commit 2d8f09c

Please sign in to comment.