linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / misc / lnav / default.nix
blob4d9364ff23e4d47b123b241348833866b300529e
1 { lib, stdenv, fetchFromGitHub, pcre-cpp, sqlite, ncurses
2 , readline, zlib, bzip2, autoconf, automake, curl }:
4 stdenv.mkDerivation rec {
6   name = "lnav-${meta.version}";
8   src = fetchFromGitHub {
9     owner = "tstack";
10     repo = "lnav";
11     rev = "v${meta.version}";
12     sha256 = "1frdrr3yjlk2fns3ny0qbr30rpswhwlvv3kyhdl3l6a0q5cqaqsg";
13     inherit name;
14   };
16   buildInputs = [
17     autoconf
18     automake
19     zlib
20     bzip2
21     ncurses
22     pcre-cpp
23     readline
24     sqlite
25     curl
26   ];
28   postPatch = ''
29     sed -ie '/DUMP_INTERNALS/d' src/Makefile.am
30   '';
32   preConfigure = ''
33     ./autogen.sh
34   '';
36   meta = with lib; {
37     homepage = "https://github.com/tstack/lnav";
38     description = "The Logfile Navigator";
39     longDescription = ''
40       The log file navigator, lnav, is an enhanced log file viewer that takes
41       advantage of any semantic information that can be gleaned from the files
42       being viewed, such as timestamps and log levels. Using this extra
43       semantic information, lnav can do things like interleaving messages from
44       different files, generate histograms of messages over time, and providing
45       hotkeys for navigating through the file. It is hoped that these features
46       will allow the user to quickly and efficiently zero in on problems.
47     '';
48     downloadPage = "https://github.com/tstack/lnav/releases";
49     license = licenses.bsd2;
50     version = "0.9.0";
51     maintainers = with maintainers; [ dochang ma27 ];
52     platforms = platforms.unix;
53   };