-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathshell.nix
38 lines (32 loc) · 890 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
let
sources = import ./nix/sources.nix;
mozilla = import (sources.nixpkgs-mozilla + "/rust-overlay.nix");
nixpkgs = import sources.nixpkgs {
overlays = [mozilla];
};
channel = nixpkgs.rustChannelOf { rustToolchain = ./rust-toolchain; };
in
nixpkgs.mkShell {
name = "logru-dev";
nativeBuildInputs = with nixpkgs; [
# Rust core
channel.rust
# Toolchain
lld_13
lldb_13
pkg-config
# Neat helper tools
cargo-audit
cargo-criterion
cargo-deny
cargo-edit
cargo-flamegraph
gnuplot # for criterion
# Nix tools
niv
];
# Always enable rust backtraces in development shell
RUST_BACKTRACE = "1";
# Provide sources for rust-analyzer, because nixpkgs rustc doesn't include them in the sysroot
RUST_SRC_PATH = "${channel.rust-src}/lib/rustlib/src/rust/library";
}