refactor(nix): inline style-check app package
This commit is contained in:
@@ -6,24 +6,22 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
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
|
in
|
||||||
{
|
{
|
||||||
style-check = {
|
style-check = {
|
||||||
type = "app";
|
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 .
|
||||||
|
'';
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user