-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
41 lines (39 loc) · 1007 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ sources ? import ./nix/sources.nix , pkgs ? import sources.nixpkgs {} }:
pkgs.stdenv.mkDerivation {
name = "rust-env";
buildInputs = [
pkgs.rustup pkgs.pkgconfig pkgs.glibc pkgs.zlib pkgs.openssl pkgs.libgit2
pkgs.exa
pkgs.ripgrep
pkgs.watchexec
pkgs.tokei
pkgs.bat
pkgs.fd
pkgs.yarn
];
shellHook = ''
export NIX_ENFORCE_PURITY=0
alias ls=exa
alias find=fd
cargo update
rustup component add clippy
rustup component add rustfmt
cargo install cargo-watch
cargo install cargo-edit
cargo install cargo-tarpaulin
cargo install cargo-audit
cargo install cargo-outdated
cargo install cargo-release
cargo install cargo-udeps
cargo install cargo-geiger
cargo install ht
cargo install zenith
mkdir -p .nix-node
export NODE_PATH=$PWD/.nix-node
export NPM_CONFIG_PREFIX=$PWD/.nix-node
export PATH=$NODE_PATH/bin:$PATH
set -o vi
'';
# Set Environment Variables
RUST_BACKTRACE = 1;
}