Files
nixpkgs/pkgs/development/tools/loganalyzer/default.nix
T
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04: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 = 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;
};
}