forked from pier-cli/pier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
33 lines (32 loc) · 775 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
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
rust_nightly = ((nixpkgs.rustChannelOf {
rustToolchain = ./rust-toolchain;
}).rust.override {
extensions = [
"rust-src"
"rust-analysis"
"clippy-preview"
"rustfmt-preview"
"rls-preview"
];
});
in
with nixpkgs; stdenv.mkDerivation {
name = "pier_dev_shell";
buildInputs = [
rust_nightly
rustfmt
python3
];
shellHook = ''
alias help="
echo 'cargo new _'
echo 'cargo build'
echo 'cargo check'
echo 'cargo run'
echo 'cargo build --release'
";
'';
}