-
-
Save notgne2/1b5b4a256bcbd8cc424ffcbe00160b1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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