Add cargo-edit and a shell hook to install Hooked.

This commit is contained in:
Bauke 2024-01-19 14:16:15 +01:00
parent 9e7dd2e3dd
commit 9a4299e5a1
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 8 additions and 0 deletions

View File

@ -7,9 +7,17 @@ let
in in
mkShell rec { mkShell rec {
packages = [ packages = [
cargo-edit
cargo-make cargo-make
mdbook mdbook
mdbook-linkcheck mdbook-linkcheck
rustup-toolchain rustup-toolchain
]; ];
shellHook = ''
# If Hooked isn't installed, use cargo to install the local version of it.
if ! [[ -x "$(command -v hooked)" ]]; then
cargo install --path hooked-cli
fi
'';
} }