2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pcre-cpp, sqlite, ncurses
|
2020-04-24 23:36:52 +00:00
|
|
|
, readline, zlib, bzip2, autoconf, automake, curl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "lnav";
|
|
|
|
version = "0.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tstack";
|
|
|
|
repo = "lnav";
|
2021-07-14 22:03:04 +00:00
|
|
|
rev = "v${version}";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "1frdrr3yjlk2fns3ny0qbr30rpswhwlvv3kyhdl3l6a0q5cqaqsg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
zlib
|
|
|
|
bzip2
|
|
|
|
ncurses
|
|
|
|
pcre-cpp
|
|
|
|
readline
|
|
|
|
sqlite
|
|
|
|
curl
|
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -ie '/DUMP_INTERNALS/d' src/Makefile.am
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tstack/lnav";
|
|
|
|
description = "The Logfile Navigator";
|
|
|
|
longDescription = ''
|
|
|
|
The log file navigator, lnav, is an enhanced log file viewer that takes
|
|
|
|
advantage of any semantic information that can be gleaned from the files
|
|
|
|
being viewed, such as timestamps and log levels. Using this extra
|
|
|
|
semantic information, lnav can do things like interleaving messages from
|
|
|
|
different files, generate histograms of messages over time, and providing
|
|
|
|
hotkeys for navigating through the file. It is hoped that these features
|
|
|
|
will allow the user to quickly and efficiently zero in on problems.
|
|
|
|
'';
|
|
|
|
downloadPage = "https://github.com/tstack/lnav/releases";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dochang ma27 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|