diff options
Diffstat (limited to 'modules/terminal/hjem/programs/helix.nix')
| -rw-r--r-- | modules/terminal/hjem/programs/helix.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/terminal/hjem/programs/helix.nix b/modules/terminal/hjem/programs/helix.nix index 80279c4..ae8ad03 100644 --- a/modules/terminal/hjem/programs/helix.nix +++ b/modules/terminal/hjem/programs/helix.nix @@ -8,7 +8,20 @@ languages = { language-server = { - rust-analyzer.command = "${pkgs.rust-analyzer}/bin/rust-analyzer"; + rust-analyzer.command = let + env = pkgs.stdenv.mkDerivation { + name = "rust-analyzer-env"; + src = ./.; + + nativeBuildInputs = [pkgs.makeWrapper]; + buildInputs = [pkgs.rust-analyzer]; + installPhase = '' + mkdir -p $out/bin + makeWrapper ${pkgs.rust-analyzer}/bin/rust-analyzer $out/bin/rust-analyzer \ + --prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [rustc cargo])} + ''; + }; + in "${env}/bin/rust-analyzer"; nil = { command = "${pkgs.nil}/bin/nil"; |
