Open damccull opened 4 months ago
I believe this could be fixed by not pulling the scripts from the local computer, but from github directly. I'm not currently aware of another way to fix it. The ability for nix to build a plugin with its vimUtils apparently mangles all shell scripts to point at nix store derivations directly.
Hey @damccull could you try the fix/install-scripts-for-nix-system
and let me know if it works now. The plugin now runs explicit bash command to run the script so as long as the remote system has the interpreter available on PATH, it should work (ignoring the shebang).
Describe the bug
When trying to launch a devcontainer using devpod on local docker provider under NixOS, everything works great until it tries to run:
At this point it fails with
From what I can guess, since my devcontainer doesn't have nix or NixOS installed, but is an unbuntu container, the script is getting incorrectly mangled or something. The first line of the script comes out to be:
To reproduce
Steps to reproduce the behavior:
flake.nix
, built into a nix vim plugin inneovim-overlay.nix
, and instantiated under nvim/plugin/remote-nvim.luaExpected behavior
Should install nvim on remote and connect to it.
Screenshots
System info
Additional context
I think maybe the nix vim plugin maker might be mangling the script, expecting to make it work on a nix install rather than anything else.