diff options
author | Akshay <[email protected]> | 2021-02-21 05:13:32 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-02-21 05:13:32 +0000 |
commit | 38d9dfee224ebcd088c0ebecd9e1243994eea409 (patch) | |
tree | 1215766f07b1c2eaf68f20aba284e710eb9a24a3 /flake.nix | |
parent | ad5bf181a176e64c9f70a292cad870e6e8110f09 (diff) | |
parent | 53f7a679a0cf7a510de13d67cf370988f71c0d08 (diff) |
Merge branch 'cursor' into master
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 | } |