I want to have self-contained neovim
with tools, (using git
as an example).
Try to append to the *buildInputs
attributes but doesn’t seem to work
neovim_plus = super.neovim.overrideAttrs (oldAttrs: {
nativeBuildInputs = [
super.git
];
buildInputs = oldAttrs.buildInputs ++ [
super.git
];
propagatedBuildInputs = [
super.git
];
});
I want to use it via nix-shell
like this
$ nix-shell --pure -p neovim_plus --run git
/tmp/nix-shell-13717-0/rc: line 1: git: command not found
If this is the wrong approach and I should create new derivation instead, please show me how.
The wrapper doesn’t have any argument to pass external tool to neovim.
I want to be able to get the neovim_plus
anywhere using nix-shell
.
The idea is to make variations based on language and tools, (instead of creating shell.nix
for everyone of each and have to point to file path when running nix-shell
)