hooked/shell.nix

34 lines
672 B
Nix
Raw Permalink Normal View History

2024-01-17 17:14:52 +00:00
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
rustup-toolchain = rust-bin.fromRustupToolchainFile ./rustup-toolchain.toml;
in
2024-01-17 17:14:52 +00:00
mkShell rec {
packages = [
2024-01-24 17:18:03 +00:00
cargo-audit
cargo-edit
2024-01-24 17:18:03 +00:00
cargo-insta
cargo-make
2024-01-24 17:18:03 +00:00
cargo-outdated
cargo-tarpaulin
mdbook
mdbook-linkcheck
rustup-toolchain
2024-01-24 17:18:03 +00:00
typos
];
shellHook = ''
# Add the outputs directory to PATH where local tools will be installed.
PATH="$PATH:$out/bin"
# 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 --root $out
fi
hooked install --silent
'';
2024-01-17 17:14:52 +00:00
}