dev: pre-commit.{installationScript -> shellHook}
Installs the file and pre-commit command on PATH in one go.
This commit is contained in:
parent
7746484926
commit
c62dabf959
1 changed files with 1 additions and 2 deletions
|
|
@ -81,7 +81,6 @@
|
|||
config.packages.nix
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pkgs.pre-commit
|
||||
config.treefmt.build.wrapper
|
||||
|
||||
pkgs.rust-analyzer
|
||||
|
|
@ -98,7 +97,7 @@
|
|||
# pkgs.cargo-valgrind
|
||||
];
|
||||
shellHook = ''
|
||||
${config.pre-commit.installationScript}
|
||||
${config.pre-commit.shellHook}
|
||||
echo 1>&2 "Welcome to the development shell!"
|
||||
'';
|
||||
# rust-analyzer needs a NIX_PATH for some reason
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue