1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 qtbase,
6 qtsvg,
7 wrapQtAppsHook,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "loganalyzer";
12 version = "23.5.1";
13
14 src = fetchFromGitHub {
15 owner = "pbek";
16 repo = "loganalyzer";
17 rev = "v${version}";
18 fetchSubmodules = true;
19 hash = "sha256-k9hOGI/TmiftwhSHQEh3ZVV8kkMSs1yKejqHelFSQJ4=";
20 };
21
22 buildInputs = [
23 qtbase
24 qtsvg
25 ];
26
27 nativeBuildInputs = [
28 wrapQtAppsHook
29 ];
30
31 sourceRoot = "${src.name}/src";
32
33 buildPhase = ''
34 runHook preBuild
35
36 qmake LogAnalyzer.pro CONFIG+=release PREFIX=/
37 make
38
39 runHook postBuild
40 '';
41
42 installFlags = [ "INSTALL_ROOT=$(out)" ];
43
44 postInstall = ''
45 ln -s $out/bin/LogAnalyzer $out/bin/loganalyzer
46 '';
47
48 meta = with lib; {
49 description = "Tool that helps you to analyze your log files by reducing the content with patterns you define";
50 homepage = "https://github.com/pbek/loganalyzer";
51 changelog = "https://github.com/pbek/loganalyzer/blob/develop/CHANGELOG.md";
52 downloadPage = "https://github.com/pbek/loganalyzer/releases/tag/v${version}";
53 license = licenses.gpl2Only;
54 maintainers = with maintainers; [ pbek ];
55 platforms = platforms.unix;
56 };
57}