Skip to content

Instantly share code, notes, and snippets.

@atcol
Last active January 1, 2021 19:04
Show Gist options
  • Save atcol/5b7e1a75a8cf08e0d754fbe2d74e0a04 to your computer and use it in GitHub Desktop.
Save atcol/5b7e1a75a8cf08e0d754fbe2d74e0a04 to your computer and use it in GitHub Desktop.
Basic Rust nightly development shell using Nix and Mozilla's Rust Overlay
with (import <nixpkgs> {});
mkShell {
buildInputs = [
gcc
glibc
zlib
openssl
rustup
ripgrep
exa
bat
fd
tokei
hyperfine
watchexec
bandwhich
];
shellHook = ''
export NIX_ENFORCE_PURITY=0
alias ls=exa
cargo update
rustup toolchain install nightly
rustup override set nightly
rustup component add clippy
rustup component add rustfmt
cargo install cargo-watch
cargo install cargo-edit
cargo install cargo-tarpaulin
cargo install cargo-audit
set -o vi
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment