diff --git a/flake.nix b/flake.nix index 088aab9..74ddcd1 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,7 @@ rust = fenix.packages.${system}.stable.withComponents [ "cargo" "rustc" + "rust-src" # just for rust-analyzer "rustfmt" "clippy" ]; @@ -47,8 +48,10 @@ # `nix develop` devShell = pkgs.mkShell { - nativeBuildInputs = with defaultPackage; - nativeBuildInputs ++ buildInputs; + nativeBuildInputs = [ + fenix.packages.${system}.rust-analyzer + ] ++ + (with defaultPackage; nativeBuildInputs ++ buildInputs); }; }) // { overlay = final: prev: {