nix-doom-emacs
nix-doom-emacs copied to clipboard
Add option to inject into {exec-path,PATH}
I'm trying to setup LSP for C using clangd but for some reason it won't work.
It complains that unzip and powershell are not installed, but trying to add it to buildInputs of pagacke cc won't work.
I don't know if the package name is cc too, it might be the cause of the error.
What do I do?
Sounds like runtime dependencies, so you could add something like this to the arguments you're passing into nix-doom-emacs:
extraConfig = ''
(setq exec-path (append exec-path '( ${
concatMapStringsSep " " (x: ''"${x}/bin"'') extraBins
} )))
(setenv "PATH" (concat (getenv "PATH") ":${
concatMapStringsSep ":" (x: "${x}/bin") extraBins
}"))
'';
where extraBins is a list of required packages.
That should probably be abstracted away though..