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
|
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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue