neovim: Remove X11 dependency

Remove runtime dependency to X11 for smaller closure sizes
and reduced complexity.
This commit is contained in:
Christian Kögler 2021-10-28 18:57:13 +02:00
parent 850251213a
commit 8b62b01325

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, gettext, msgpack, libtermkey, libiconv
, libuv, lua, ncurses, pkg-config
, unibilium, xsel, gperf
, unibilium, gperf
, libvterm-neovim
, tree-sitter
, glibcLocales ? null, procps ? null
@ -113,10 +113,6 @@ in
substituteInPlace src/nvim/CMakeLists.txt --replace " util" ""
'';
postInstall = lib.optionalString stdenv.isLinux ''
sed -i -e "s|'xsel|'${xsel}/bin/xsel|g" $out/share/nvim/runtime/autoload/provider/clipboard.vim
'';
# export PATH=$PWD/build/bin:${PATH}
shellHook=''
export VIMRUNTIME=$PWD/runtime