ci(nix): drop pre-commit-hooks

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
seth 2024-08-20 01:47:03 -04:00
parent 4c81d8c53d
commit 7a83d0cea0
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
3 changed files with 25 additions and 100 deletions

View file

@ -1,41 +1,9 @@
{
perSystem =
{ pkgs, self', ... }:
{
config,
lib,
pkgs,
...
}:
{
pre-commit.settings = {
hooks = {
markdownlint.enable = true;
deadnix.enable = true;
nil.enable = true;
nixfmt.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.prismlauncher-unwrapped ];
inputsFrom = [ self'.packages.prismlauncher-unwrapped ];
buildInputs = with pkgs; [
ccache
ninja