Skip to content

Instantly share code, notes, and snippets.

@notgne2
Created December 24, 2019 05:47
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/1b5b4a256bcbd8cc424ffcbe00160b1b to your computer and use it in GitHub Desktop.
Save notgne2/1b5b4a256bcbd8cc424ffcbe00160b1b to your computer and use it in GitHub Desktop.
{
nixpkgs.overlays = [
(self: super: with super;
let
vimdiff = pkgs.writeScript "vim-diff" "exec ${pkgs.neovim}/bin/nvim -d \"$@\"";
in
rec {
neovim = (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