aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/hjem/programs/helix.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-04 16:48:23 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-04 16:49:11 -0600
commit4cd73433add5fd167e84379b6ae29bba41dac6a9 (patch)
tree8fccdf627d73efd9d4a046bb8bcc1b728aeaa570 /modules/terminal/hjem/programs/helix.nix
parent3ccf3147edf663271960826c79a4213bc3b3eb8f (diff)
xdg compliance stuff
Diffstat (limited to 'modules/terminal/hjem/programs/helix.nix')
-rw-r--r--modules/terminal/hjem/programs/helix.nix15
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";