13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 sha256 = "sha256-Au9rRZMZfU4qHi/ng6JO8FnMpySKDbKzr75SBPY3QiA=";
26 procps # for nvim_get_proc() which uses ps(1)
28 nativeBuildInputs = [ scdoc ];
30 makeFlags = [ "PREFIX=$(out)" ];
32 "nvimpager.configured"
36 patchShebangs nvimpager
37 substituteInPlace nvimpager --replace-fail ':-nvim' ':-${lib.getExe neovim}'
46 # filter out one test that fails in the sandbox of nix or with neovim v0.10
49 checkFlagsArray+=('BUSTED=busted --output TAP --exclude-tags=${
50 "nix,v10" + lib.optionalString stdenv.hostPlatform.isDarwin ",mac"
55 description = "Use neovim as pager";
57 Use neovim as a pager to view manpages, diffs, etc with nvim's syntax
58 highlighting. Includes a cat mode to print highlighted files to stdout
59 and a ansi esc mode to highlight ansi escape sequences in neovim.
61 homepage = "https://github.com/lucc/nvimpager";
62 license = licenses.bsd2;
63 platforms = platforms.unix;
64 maintainers = [ maintainers.lucc ];
65 mainProgram = "nvimpager";