File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1- {
2- inputs ,
3- lib ,
4- ...
5- } : {
1+ { inputs , ...} : {
62 imports = [
73 inputs . devshell . flakeModule
84 inputs . pre-commit-hooks-nix . flakeModule
1915 motd = ''
2016 ❄️ Welcome to the {14}{bold}cardano.nix{reset} devshell ❄️
2117 $(type -p menu &>/dev/null && menu)
18+ $(type -p update-pre-commit-hooks &>/dev/null && update-pre-commit-hooks)
2219 '' ;
23- startup = {
24- pre-commit = lib . noDepEntry "eval ${ config . pre-commit . installationScript } " ;
25- } ;
2620 } ;
2721 packages = with pkgs ; [
2822 statix
2923 config . treefmt . build . wrapper
3024 reuse
3125 ] ;
26+ commands = [
27+ {
28+ name = "update-pre-commit-hooks" ;
29+ command = config . pre-commit . installationScript ;
30+ category = "Tools" ;
31+ help = "Update pre-commit-hooks" ;
32+ }
33+ ] ;
3234 } ;
3335 pre-commit . settings = {
3436 hooks . treefmt . enable = true ;
You can’t perform that action at this time.
0 commit comments