Merge pull request #46 from nixops4/dev-flake-module-delegate-pre-commit-installation-to-upstream
dev: pre-commit.{installationScript -> shellHook}
This commit is contained in:
commit
553f6fbfa7
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