Last active
January 1, 2021 19:04
-
-
Save atcol/5b7e1a75a8cf08e0d754fbe2d74e0a04 to your computer and use it in GitHub Desktop.
Basic Rust nightly development shell using Nix and Mozilla's Rust Overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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