Merge pull request #232631 from pbek/feature/loganalyzer
This commit is contained in:
commit
342d73c935
56
pkgs/development/tools/loganalyzer/default.nix
Normal file
56
pkgs/development/tools/loganalyzer/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "loganalyzer";
|
||||
version = "23.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pbek";
|
||||
repo = "loganalyzer";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-k9hOGI/TmiftwhSHQEh3ZVV8kkMSs1yKejqHelFSQJ4=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtsvg
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
sourceRoot = "source/src";
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
qmake LogAnalyzer.pro CONFIG+=release PREFIX=/
|
||||
make
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/bin/LogAnalyzer $out/bin/loganalyzer
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool that helps you to analyze your log files by reducing the content with patterns you define";
|
||||
homepage = "https://github.com/pbek/loganalyzer";
|
||||
changelog = "https://github.com/pbek/loganalyzer/blob/develop/CHANGELOG.md";
|
||||
downloadPage = "https://github.com/pbek/loganalyzer/releases/tag/v${version}";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ pbek ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -9305,6 +9305,8 @@ with pkgs;
|
|||
|
||||
lockfileProgs = callPackage ../tools/misc/lockfile-progs { };
|
||||
|
||||
loganalyzer = libsForQt5.callPackage ../development/tools/loganalyzer { };
|
||||
|
||||
logstash7 = callPackage ../tools/misc/logstash/7.x.nix {
|
||||
# https://www.elastic.co/support/matrix#logstash-and-jvm
|
||||
jre = jdk11_headless;
|
||||
|
|
Loading…
Reference in a new issue