2023-05-27 18:45:28 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
perSystem = {
|
|
|
|
system,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
checks = {
|
|
|
|
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
|
|
|
|
src = self;
|
|
|
|
hooks = {
|
|
|
|
markdownlint.enable = true;
|
|
|
|
|
|
|
|
alejandra.enable = true;
|
|
|
|
deadnix.enable = true;
|
2023-05-28 00:25:49 +01:00
|
|
|
nil.enable = true;
|
2023-05-27 18:45:28 +01:00
|
|
|
|
|
|
|
clang-format = {
|
2023-07-28 15:09:43 +01:00
|
|
|
enable = true;
|
2023-07-29 10:30:33 +01:00
|
|
|
types_or = ["c" "c++" "java" "json" "objective-c"];
|
2023-05-27 18:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
2023-08-23 12:46:04 +01:00
|
|
|
|
|
|
|
tools.clang-tools = pkgs.clang-tools_16;
|
2023-05-27 18:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
|
|
|
packages = with pkgs; [
|
|
|
|
nodePackages.markdownlint-cli
|
|
|
|
alejandra
|
|
|
|
deadnix
|
|
|
|
clang-tools
|
2023-05-28 00:25:49 +01:00
|
|
|
nil
|
2023-05-27 18:45:28 +01:00
|
|
|
];
|
|
|
|
|
2023-06-11 19:02:36 +01:00
|
|
|
inputsFrom = [self.packages.${system}.prismlauncher-unwrapped];
|
2023-05-27 18:45:28 +01:00
|
|
|
buildInputs = with pkgs; [ccache ninja];
|
|
|
|
};
|
|
|
|
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
};
|
|
|
|
}
|