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-19 13:16:15 +00:00
|
|
|
cargo-edit
|
2024-01-19 13:00:02 +00:00
|
|
|
cargo-make
|
|
|
|
mdbook
|
|
|
|
mdbook-linkcheck
|
|
|
|
rustup-toolchain
|
|
|
|
];
|
2024-01-19 13:16:15 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2024-01-17 17:14:52 +00:00
|
|
|
}
|