mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
chore: silence git-hooks nixfmt warning
This commit is contained in:
parent
661bc1561a
commit
f53336f887
2 changed files with 278 additions and 13 deletions
34
shell.nix
34
shell.nix
|
@ -4,21 +4,29 @@ let
|
|||
nixos-anywhere = pkgs.callPackage "${inputs.nixos-anywhere}/src/default.nix" { };
|
||||
agenix = pkgs.callPackage "${inputs.agenix}/pkgs/agenix.nix" { };
|
||||
bootstrap = import scripts/bootstrap-machine.nix;
|
||||
pre-commit-hook = (import inputs.git-hooks).run {
|
||||
src = ./.;
|
||||
pre-commit-hook =
|
||||
(import (
|
||||
pkgs.applyPatches {
|
||||
name = "patched-git-hooks";
|
||||
src = inputs.git-hooks;
|
||||
patches = [ ./patches/hooks-correct-nixfmt.patch ];
|
||||
}
|
||||
)).run
|
||||
{
|
||||
src = ./.;
|
||||
|
||||
hooks = {
|
||||
statix.enable = true;
|
||||
deadnix.enable = true;
|
||||
rfc101 = {
|
||||
enable = true;
|
||||
name = "RFC-101 formatting";
|
||||
entry = "${pkgs.lib.getExe pkgs.nixfmt-rfc-style}";
|
||||
files = "\\.nix$";
|
||||
hooks = {
|
||||
statix.enable = true;
|
||||
deadnix.enable = true;
|
||||
rfc101 = {
|
||||
enable = true;
|
||||
name = "RFC-101 formatting";
|
||||
entry = "${pkgs.lib.getExe pkgs.nixfmt-rfc-style}";
|
||||
files = "\\.nix$";
|
||||
};
|
||||
commitizen.enable = true;
|
||||
};
|
||||
};
|
||||
commitizen.enable = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue