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

View File

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