-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
44 lines (42 loc) · 974 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
42
43
44
with import <nixpkgs> { };
let
sources = import ./nix/sources.nix;
mozilla-overlay =
import
(
builtins.fetchTarball
https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz
);
pkgs = import sources.nixpkgs {
overlays = [mozilla-overlay];
};
rustChannels =
pkgs.lib.mapAttrs
(_: v: pkgs.rustChannelOf v)
(import ./nix/rust-channels.nix {
stableVersion = "1.46.0";
});
in pkgs.mkShell rec {
name = "advent-of-code";
buildInputs = [
# dev tools
#pkgs.cargo-edit
pkgs.cargo-release
pkgs.rustfmt
rustChannels.nightly.rust
pkgs.rustup
pkgs.carnix
pkgs.httpie
gitAndTools.pre-commit
pkgs.rustracer
pkgs.graphviz
pkgs.rls
pkgs.niv
pkgs.clippy
];
RUST_SRC_PATH= "${rustChannels.stable.rust-src}/lib/rustlib/src/rust/src";
HISTFILE = "${toString ./.}/.bash_history";
RUST_BACKTRACE = 1;
RUST_LOG="INFO";
ADVENT_COOKIE_SESSION="<REDACTED>";
}