nixpkgs/pkgs/tools/text/glogg/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2020-07-22 14:55:20 +01:00
{ mkDerivation, stdenv, fetchFromGitHub, qmake, boost }:
2018-11-17 22:04:41 +00:00
2020-04-07 21:33:30 +01:00
mkDerivation rec {
pname = "glogg";
2018-11-17 22:04:41 +00:00
version = "1.1.4";
2020-07-22 14:55:20 +01:00
src = fetchFromGitHub {
owner = "nickbnf";
repo = "glogg";
rev = "v${version}";
sha256 = "0hf1c2m8n88frmxmyn0ndr8129p7iky49nq565sw1asaydm5z6pb";
2018-11-17 22:04:41 +00:00
};
2020-07-22 14:55:20 +01:00
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace glogg.pro \
--replace "boost_program_options-mt" "boost_program_options"
'';
2018-11-17 22:04:41 +00:00
nativeBuildInputs = [ qmake ];
buildInputs = [ boost ];
2020-07-22 14:55:20 +01:00
qmakeFlags = [ "VERSION=${version}" ];
2018-11-17 22:04:41 +00:00
enableParallelBuilding = true;
2020-07-22 14:55:20 +01:00
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
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
'';
2018-11-17 22:04:41 +00:00
meta = with stdenv.lib; {
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.
'';
homepage = "https://glogg.bonnefon.org/";
2018-11-17 22:04:41 +00:00
license = licenses.gpl3Plus;
2020-07-22 14:55:20 +01:00
platforms = platforms.unix;
2018-11-17 22:04:41 +00:00
maintainers = with maintainers; [ c0bw3b ];
};
}