3 , ncurses, neovim, procps
4 , scdoc, lua51Packages, util-linux
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-Au9rRZMZfU4qHi/ng6JO8FnMpySKDbKzr75SBPY3QiA=";
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-fail ':-nvim' ':-${lib.getExe neovim}'
32 nativeCheckInputs = [ lua51Packages.busted util-linux neovim ];
33 # filter out one test that fails in the sandbox of nix or with neovim v0.10
36 checkFlagsArray+=('BUSTED=busted --output TAP --exclude-tags=${"nix,v10" + lib.optionalString stdenv.hostPlatform.isDarwin ",mac"}')
40 description = "Use neovim as pager";
42 Use neovim as a pager to view manpages, diffs, etc with nvim's syntax
43 highlighting. Includes a cat mode to print highlighted files to stdout
44 and a ansi esc mode to highlight ansi escape sequences in neovim.
46 homepage = "https://github.com/lucc/nvimpager";
47 license = licenses.bsd2;
48 platforms = platforms.unix;
49 maintainers = [ maintainers.lucc ];
50 mainProgram = "nvimpager";