diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -19,6 +19,11 @@ | |||
19 | channel = "nightly"; | 19 | channel = "nightly"; |
20 | sha256 = "LbKHsCOFXWpg/SEyACfzZuWjKbkXdH6EJKOPSGoO01E="; # set zeros after modifying channel or date | 20 | sha256 = "LbKHsCOFXWpg/SEyACfzZuWjKbkXdH6EJKOPSGoO01E="; # set zeros after modifying channel or date |
21 | }).rust; | 21 | }).rust; |
22 | rust-src = (mozilla.rustChannelOf { | ||
23 | date = "2020-12-23"; | ||
24 | channel = "nightly"; | ||
25 | sha256 = "LbKHsCOFXWpg/SEyACfzZuWjKbkXdH6EJKOPSGoO01E="; # set zeros after modifying channel or date | ||
26 | }).rust-src; | ||
22 | 27 | ||
23 | naersk-lib = naersk.lib."${system}".override { | 28 | naersk-lib = naersk.lib."${system}".override { |
24 | cargo = rust; | 29 | cargo = rust; |
@@ -37,10 +42,15 @@ | |||
37 | devShell = pkgs.mkShell { | 42 | devShell = pkgs.mkShell { |
38 | nativeBuildInputs = [ | 43 | nativeBuildInputs = [ |
39 | rust | 44 | rust |
45 | rust-src | ||
46 | pkgs.rust-analyzer | ||
40 | pkgs.cargo | 47 | pkgs.cargo |
41 | pkgs.openssl | 48 | pkgs.openssl |
42 | pkgs.ncurses | 49 | pkgs.ncurses |
43 | ]; | 50 | ]; |
51 | shellHook = '' | ||
52 | export RUST_SRC_PATH="${rust-src}/lib/rustlib/src/rust/library" | ||
53 | ''; | ||
44 | }; | 54 | }; |
45 | }); | 55 | }); |
46 | } | 56 | } |