From 15c6fa023fe6c85e1a5e7475bb6f1a761f845dca Mon Sep 17 00:00:00 2001 From: Nick Novitski Date: Sat, 21 May 2016 03:50:04 +0000 Subject: [PATCH] neovim: fix Man command --- pkgs/applications/editors/neovim/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 5ac7a69aeda5..0eba31375dc3 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, cmake, gettext, glib, libmsgpack, libtermkey -, libtool, libuv, lpeg, lua, luajit, luaMessagePack, luabitop, ncurses, perl -, pkgconfig, unibilium, makeWrapper, vimUtils +, libtool, libuv, lpeg, lua, luajit, luaMessagePack, luabitop, man, ncurses +, perl, pkgconfig, unibilium, makeWrapper, vimUtils , withPython ? true, pythonPackages, extraPythonPackages ? [] , withPython3 ? true, python3Packages, extraPython3Packages ? [] @@ -98,7 +98,10 @@ let LUA_CPATH="${lpeg}/lib/lua/${lua.luaversion}/?.so;${luabitop}/lib/lua/5.2/?.so"; LUA_PATH="${luaMessagePack}/share/lua/5.1/?.lua"; - preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' + preConfigure = '' + substituteInPlace runtime/autoload/man.vim \ + --replace /usr/bin/man ${man}/bin/man + '' + stdenv.lib.optionalString stdenv.isDarwin '' export DYLD_LIBRARY_PATH=${jemalloc}/lib substituteInPlace src/nvim/CMakeLists.txt --replace " util" "" '';