refactor(nix): inline style-check app package

This commit is contained in:
2026-09-15 23:46:28 -04:00
parent 1cfab7e77e
commit 9caf79d623

View File

@@ -6,24 +6,22 @@
}:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
styleCheck = pkgs.writeShellApplication {
name = "style-check";
runtimeInputs = [
formatter
pkgs.statix
pkgs.deadnix
];
text = ''
treefmt --fail-on-change
statix check .
deadnix --fail --no-lambda-pattern-names --no-underscore .
'';
};
in
{
style-check = {
type = "app";
program = lib.getExe styleCheck;
program = lib.getExe (pkgs.writeShellApplication {
name = "style-check";
runtimeInputs = [
formatter
pkgs.statix
pkgs.deadnix
];
text = ''
treefmt --fail-on-change
statix check .
deadnix --fail --no-lambda-pattern-names --no-underscore .
'';
});
};
}