Skip to content

Instantly share code, notes, and snippets.

@notgne2
Last active December 24, 2019 05:53
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/4105d2c56bdc4dcc050f76ffd1500c2f to your computer and use it in GitHub Desktop.
Save notgne2/4105d2c56bdc4dcc050f76ffd1500c2f to your computer and use it in GitHub Desktop.
self: super: rec {
vimdiff = super.writeScriptBin "vimdiff" "exec ${pkgs.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
'';
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment