3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/glogg/default.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, 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
};
2021-01-15 09:19:50 +00:00
postPatch = lib.optionalString stdenv.isDarwin ''
2020-07-22 14:55:20 +01:00
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
2021-01-15 09:19:50 +00:00
postInstall = lib.optionalString stdenv.isDarwin ''
2020-07-22 14:55:20 +01:00
mkdir -p $out/Applications
mv $out/bin/glogg.app $out/Applications/glogg.app
rm -fr $out/{bin,share}
'';
meta = with lib; {
2018-11-17 22:04:41 +00: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.
'';
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 ];
};
}