Skip to content

Instantly share code, notes, and snippets.

@notgne2
Last active December 24, 2019 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notgne2/b9720890b843a1b11217099652c8b705 to your computer and use it in GitHub Desktop.
Save notgne2/b9720890b843a1b11217099652c8b705 to your computer and use it in GitHub Desktop.
self: super: {
vimdiff = super.writeScriptBin "vimdiff" "exec ${super.neovim}/bin/nvim -d \"$@\"";
neovim = (super.neovim.override { viAlias = true; vimAlias = true; }).overrideAttrs (oldAttrs: {
buildCommand = oldAttrs.buildCommand + ''
ln -s ${vimdiff}/bin/vimdiff $out/bin/vimdiff
'';
});
}
self: super: {
neovim =
let
vimdiff = super.writeScript "vimdiff" "exec ${super.neovim}/bin/nvim -d \"$@\"";
in
(super.neovim.override { viAlias = true; vimAlias = true; }).overrideAttrs (oldAttrs: {
buildCommand = oldAttrs.buildCommand + ''
ln -s ${vimdiff} $out/bin/vimdiff
'';
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment