diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 12 |
1 files changed, 11 insertions, 1 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; |
@@ -38,10 +43,15 @@ | |||
38 | devShell = pkgs.mkShell { | 43 | devShell = pkgs.mkShell { |
39 | nativeBuildInputs = [ | 44 | nativeBuildInputs = [ |
40 | rust | 45 | rust |
46 | rust-src | ||
47 | pkgs.rust-analyzer | ||
41 | pkgs.cargo | 48 | pkgs.cargo |
42 | pkgs.cargo | 49 | pkgs.openssl |
43 | pkgs.ncurses | 50 | pkgs.ncurses |
44 | ]; | 51 | ]; |
52 | shellHook = '' | ||
53 | export RUST_SRC_PATH="${rust-src}/lib/rustlib/src/rust/library" | ||
54 | ''; | ||
45 | }; | 55 | }; |
46 | }); | 56 | }); |
47 | } | 57 | } |