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
|
config.packages.nix
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.pre-commit
|
|
||||||
config.treefmt.build.wrapper
|
config.treefmt.build.wrapper
|
||||||
|
|
||||||
pkgs.rust-analyzer
|
pkgs.rust-analyzer
|
||||||
|
|
@ -98,7 +97,7 @@
|
||||||
# pkgs.cargo-valgrind
|
# pkgs.cargo-valgrind
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${config.pre-commit.installationScript}
|
${config.pre-commit.shellHook}
|
||||||
echo 1>&2 "Welcome to the development shell!"
|
echo 1>&2 "Welcome to the development shell!"
|
||||||
'';
|
'';
|
||||||
# rust-analyzer needs a NIX_PATH for some reason
|
# rust-analyzer needs a NIX_PATH for some reason
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue