2024-01-17 17:14:52 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
2024-01-19 13:00:02 +00:00
|
|
|
let
|
|
|
|
rustup-toolchain = rust-bin.fromRustupToolchainFile ./rustup-toolchain.toml;
|
|
|
|
in
|
2024-01-17 17:14:52 +00:00
|
|
|
mkShell rec {
|
2024-01-19 13:00:02 +00:00
|
|
|
packages = [
|
2024-01-24 17:18:03 +00:00
|
|
|
cargo-audit
|
2024-01-19 13:16:15 +00:00
|
|
|
cargo-edit
|
2024-01-24 17:18:03 +00:00
|
|
|
cargo-insta
|
2024-01-19 13:00:02 +00:00
|
|
|
cargo-make
|
2024-01-24 17:18:03 +00:00
|
|
|
cargo-outdated
|
|
|
|
cargo-tarpaulin
|
2024-01-19 13:00:02 +00:00
|
|
|
mdbook
|
|
|
|
mdbook-linkcheck
|
|
|
|
rustup-toolchain
|
2024-01-24 17:18:03 +00:00
|
|
|
typos
|
2024-01-19 13:00:02 +00:00
|
|
|
];
|
2024-01-19 13:16:15 +00:00
|
|
|
|
|
|
|
shellHook = ''
|
2024-01-19 14:33:01 +00:00
|
|
|
# Add the outputs directory to PATH where local tools will be installed.
|
|
|
|
PATH="$PATH:$out/bin"
|
|
|
|
|
2024-01-19 13:16:15 +00:00
|
|
|
# If Hooked isn't installed, use cargo to install the local version of it.
|
|
|
|
if ! [[ -x "$(command -v hooked)" ]]; then
|
2024-01-19 14:33:01 +00:00
|
|
|
cargo install --path hooked-cli --root $out
|
2024-01-19 13:16:15 +00:00
|
|
|
fi
|
2024-01-19 14:33:01 +00:00
|
|
|
|
|
|
|
hooked install
|
2024-01-19 13:16:15 +00:00
|
|
|
'';
|
2024-01-17 17:14:52 +00:00
|
|
|
}
|