diff --git a/flake.nix b/flake.nix index 7f90fe7..e983382 100644 --- a/flake.nix +++ b/flake.nix @@ -52,7 +52,7 @@ devShell = pkgs.mkShell { inputsFrom = [ defaultPackage ]; - packages = with pkgs; [ clippy mdbook python3 ]; + packages = with pkgs; [ clippy mdbook python3 rust-analyzer ]; shellHook = '' export NIX_PATH=nixpkgs=${pkgs.path} ''; diff --git a/nix/rust-analyzer.sh b/nix/rust-analyzer.sh new file mode 100755 index 0000000..3e6bfd6 --- /dev/null +++ b/nix/rust-analyzer.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env nix-shell +#! nix-shell -i bash ../shell.nix + +exec rust-analyzer "$@"