2021-01-11 08:54:33 +01:00
|
|
|
{ mkDerivation, lib, stdenv, fetchFromGitHub, qmake, boost }:
|
2018-11-17 23:04:41 +01:00
|
|
|
|
2020-04-07 22:33:30 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "glogg";
|
2018-11-17 23:04:41 +01:00
|
|
|
version = "1.1.4";
|
|
|
|
|
2020-07-22 15:55:20 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickbnf";
|
|
|
|
repo = "glogg";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0hf1c2m8n88frmxmyn0ndr8129p7iky49nq565sw1asaydm5z6pb";
|
2018-11-17 23:04:41 +01:00
|
|
|
};
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
2020-07-22 15:55:20 +02:00
|
|
|
substituteInPlace glogg.pro \
|
|
|
|
--replace "boost_program_options-mt" "boost_program_options"
|
|
|
|
'';
|
|
|
|
|
2018-11-17 23:04:41 +01:00
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
buildInputs = [ boost ];
|
|
|
|
|
2020-07-22 15:55:20 +02:00
|
|
|
qmakeFlags = [ "VERSION=${version}" ];
|
2018-11-17 23:04:41 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
2020-07-22 15:55:20 +02:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv $out/bin/glogg.app $out/Applications/glogg.app
|
|
|
|
rm -fr $out/{bin,share}
|
|
|
|
wrapQtApp $out/Applications/glogg.app/Contents/MacOS/glogg
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-17 23:04:41 +01:00
|
|
|
description = "The fast, smart log explorer";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://glogg.bonnefon.org/";
|
2018-11-17 23:04:41 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-07-22 15:55:20 +02:00
|
|
|
platforms = platforms.unix;
|
2018-11-17 23:04:41 +01:00
|
|
|
maintainers = with maintainers; [ c0bw3b ];
|
|
|
|
};
|
|
|
|
}
|