mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
ci(nix): drop pre-commit-hooks
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
4c81d8c53d
commit
7a83d0cea0
3 changed files with 25 additions and 100 deletions
36
nix/dev.nix
36
nix/dev.nix
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue