Files
dev/src/dotfiles/apps.nix

28 lines
489 B
Nix

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