loganalyzer: Fix output binary on darwin (#520943)

This commit is contained in:
Silvan Mosberger
2026-05-17 14:43:33 +00:00
committed by GitHub
+11 -3
View File
@@ -41,9 +41,17 @@ stdenv.mkDerivation rec {
installFlags = [ "INSTALL_ROOT=$(out)" ];
postInstall = ''
ln -s $out/bin/LogAnalyzer $out/bin/loganalyzer
'';
postInstall =
let
outBin =
if stdenv.hostPlatform.isDarwin then
"LogAnalyzer.app/Contents/MacOS/LogAnalyzer"
else
"LogAnalyzer";
in
''
ln -s $out/bin/${outBin} $out/bin/loganalyzer
'';
meta = {
description = "Tool that helps you to analyze your log files by reducing the content with patterns you define";