Hi!
I’m working on a project inside a devshell. The devshell doesn’t throw anything weird when I run it with nix-shell shell.nix command. My go package is built, the terminal output is fine and which cslsp where cslsp is a custom lsp I started writing throws the right nix store path. Oddly though, cslsp simply dissapears when I apply a custom tmux layout I use for coding to have my text editor and lazygit at hand reach. Why’s that? I never run a line that changes anything in nushell to not be able to find cslsp again.
ide_layout.conf (tmux script)
%if "#{==:#{window_panes},1}"
rename-window ide
splitw -h -p 65 "hx"
splitw -h -p 40
send-keys "lazygit" ENTER
selectp -t 0
send-keys "w3m duckduckgo.com" ENTER
splitp -v -p 50
selectp -t 2
%else
display-message "Windows must not be splitted already"
%endif
shell.nix
{pkgs ? import <nixpkgs>{}}:
pkgs.mkShell {
packages = with pkgs; [
go gopls golangci-lint delve gotools
];
buildInputs = with pkgs; [ (callPackage ./lspbuilder.nix {})];
hardeningDisable = ["fortify"];
shellHook = ''nu'';
}
lspbuilder.nix
{buildGoModule}:
buildGoModule(finalAttrs: {
pname = "cslsp";
version = "0.1";
src = ./.;
vendorHash = null;
})