feat(nix): add style fix app

This commit is contained in:
2026-09-16 00:00:48 -04:00
parent f8b7319756
commit caaa53c8b7
2 changed files with 7 additions and 7 deletions

View File

@@ -2,25 +2,26 @@
inputs,
lib,
formatter,
self,
system,
}:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in
{
style-check = {
fix = {
type = "app";
program = lib.getExe (pkgs.writeShellApplication {
name = "style-check";
name = "fix";
runtimeInputs = [
formatter.config.build.wrapper
pkgs.statix
pkgs.deadnix
];
text = ''
test -e ${formatter.config.build.check self}
statix check .
deadnix --fail --no-lambda-pattern-names --no-underscore .
treefmt
statix fix .
deadnix --edit --no-lambda-pattern-names --no-underscore .
treefmt
'';
});
};

View File

@@ -52,7 +52,6 @@ in
inputs
lib
formatter
self
system
;
};