forked from bitwhip/bitwhip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
25 lines (21 loc) · 810 Bytes
/
shell.nix
File metadata and controls
25 lines (21 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let pkgs = import (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz) {
config.allowUnfree = true;
overlays = [
(import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
];
};
rustc = pkgs.rust-bin.stable.latest.default.override { extensions = ["rust-src"];};
cargo = pkgs.rust-bin.stable.latest.default;
rustPlatform = pkgs.makeRustPlatform { rustc = rustc; cargo = cargo;};
in
pkgs.mkShell {
RUST_BACKTRACE = 1;
inputsFrom = [ (pkgs.callPackage ./derivation.nix { rustPlatform = rustPlatform;}) ];
buildInputs = [
rustc
cargo
pkgs.rust-bin.stable.latest.rust-analyzer # LSP Server
pkgs.rust-bin.stable.latest.rustfmt # Formatter
pkgs.rust-bin.stable.latest.clippy # Linter
];
}