Files
nixpkgs/pkgs/development/tools/loganalyzer/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.2 KiB
Nix

{
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 = "${src.name}/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 = {
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 = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ pbek ];
platforms = lib.platforms.unix;
};
}