Last active
December 30, 2020 09:46
-
-
Save atcol/81e7143445e036af389e82b4c959c7a3 to your computer and use it in GitHub Desktop.
Rust & Yarn `nix.shell` for consistent development environments
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 | |
yarn | |
]; | |
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 | |
mkdir -p .nix-node | |
export NODE_PATH=$PWD/.nix-node | |
export NPM_CONFIG_PREFIX=$PWD/.nix-node | |
export PATH=$NODE_PATH/bin:$PATH | |
yarn set version berry | |
set -o vi | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment