aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-03-16 12:43:29 +0100
committerKarel Kočí <cynerd@email.cz>2023-03-16 12:43:29 +0100
commitf4e8372bc0cd143ea30cd3c28ec581b73649cfe0 (patch)
tree685fabeaf44f0292e4f0a2c89e751e15789e2d3c
parentdf7fdb5bc098ebf2220235b2337a1517267ef04d (diff)
downloadshellrc-f4e8372bc0cd143ea30cd3c28ec581b73649cfe0.tar.gz
shellrc-f4e8372bc0cd143ea30cd3c28ec581b73649cfe0.tar.bz2
shellrc-f4e8372bc0cd143ea30cd3c28ec581b73649cfe0.zip
flake: add check using statix
-rw-r--r--flake.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 013277b..66dd2e7 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,5 +24,8 @@
packages = selfPkgs // {default = selfPkgs.shellrc-bash;};
legacyPackages = pkgs.extend self.overlays.default;
formatter = pkgs.alejandra;
+ checks.statix =
+ pkgs.runCommandNoCC "check-statix" {}
+ "${pkgs.statix}/bin/statix check ${./.} && touch $out";
});
}