3 , ncurses, neovim, procps
4 , scdoc, lua51Packages, util-linux
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-tjnmY7dJUE5k8hlAfNKcHqmpw0ciS6T5WJOpDvvt2V0=";
20 procps # for nvim_get_proc() which uses ps(1)
22 nativeBuildInputs = [ scdoc ];
24 makeFlags = [ "PREFIX=$(out)" ];
25 buildFlags = [ "nvimpager.configured" "nvimpager.1" ];
27 patchShebangs nvimpager
28 substituteInPlace nvimpager --replace ':-nvim' ':-${neovim}/bin/nvim'
32 checkInputs = [ lua51Packages.busted util-linux neovim ];
33 # filter out one test that fails in the sandbox of nix
36 script -ec "busted --lpath './?.lua' --filter-out 'handles man' test"
41 broken = stdenv.isDarwin;
42 description = "Use neovim as pager";
44 Use neovim as a pager to view manpages, diffs, etc with nvim's syntax
45 highlighting. Includes a cat mode to print highlighted files to stdout
46 and a ansi esc mode to highlight ansi escape sequences in neovim.
48 homepage = "https://github.com/lucc/nvimpager";
49 license = licenses.bsd2;
50 platforms = platforms.unix;
51 maintainers = [ maintainers.lucc ];