1 { mkDerivation, lib, stdenv, fetchFromGitHub, qmake, boost }:
7 src = fetchFromGitHub {
11 sha256 = "0hf1c2m8n88frmxmyn0ndr8129p7iky49nq565sw1asaydm5z6pb";
14 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
15 substituteInPlace glogg.pro \
16 --replace "boost_program_options-mt" "boost_program_options"
19 nativeBuildInputs = [ qmake ];
20 buildInputs = [ boost ];
22 qmakeFlags = [ "VERSION=${version}" ];
24 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
25 mkdir -p $out/Applications
26 mv $out/bin/glogg.app $out/Applications/glogg.app
27 rm -fr $out/{bin,share}
31 description = "Fast, smart log explorer";
32 mainProgram = "glogg";
34 A multi-platform GUI application to browse and search through long or complex log files. It is designed with programmers and system administrators in mind. glogg can be seen as a graphical, interactive combination of grep and less.
36 homepage = "https://glogg.bonnefon.org/";
37 license = licenses.gpl3Plus;
38 platforms = platforms.unix;
39 maintainers = with maintainers; [ c0bw3b ];