Skip to content

Commit dd93269

Browse files
avnikbrainrake
authored andcommitted
feat: implement hacky direnv support
1 parent 235f262 commit dd93269

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

shell/default.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
{
2-
inputs,
3-
lib,
4-
...
5-
}: {
1+
{inputs, ...}: {
62
imports = [
73
inputs.devshell.flakeModule
84
inputs.pre-commit-hooks-nix.flakeModule
@@ -19,16 +15,22 @@
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;

0 commit comments

Comments
 (0)