Add cargo-edit and a shell hook to install Hooked.
This commit is contained in:
parent
9e7dd2e3dd
commit
9a4299e5a1
|
@ -7,9 +7,17 @@ let
|
|||
in
|
||||
mkShell rec {
|
||||
packages = [
|
||||
cargo-edit
|
||||
cargo-make
|
||||
mdbook
|
||||
mdbook-linkcheck
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue