The primary goals here include making the flake easier to contribute to by having it follow the standard boilerplate, while also limiting the size of our flake.lock to lower the chance of duplicate inputs for users Signed-off-by: seth <getchoo@tuta.io>
37 lines
712 B
Nix
37 lines
712 B
Nix
{
|
|
perSystem = {
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
pre-commit.settings = {
|
|
hooks = {
|
|
markdownlint.enable = true;
|
|
|
|
alejandra.enable = true;
|
|
deadnix.enable = true;
|
|
nil.enable = true;
|
|
|
|
clang-format = {
|
|
enable = true;
|
|
types_or = ["c" "c++" "java" "json" "objective-c"];
|
|
};
|
|
};
|
|
|
|
tools.clang-tools = lib.mkForce pkgs.clang-tools_18;
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
shellHook = ''
|
|
${config.pre-commit.installationScript}
|
|
'';
|
|
|
|
inputsFrom = [config.packages.fjordlauncher-unwrapped];
|
|
buildInputs = with pkgs; [ccache ninja];
|
|
};
|
|
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
}
|