From 969c15793d6737be7c24b2ca6ec3447e7c1bd358 Mon Sep 17 00:00:00 2001 From: Linus Vettiger Date: Sat, 16 May 2026 16:21:31 +0200 Subject: [PATCH] loganalyzer: Fix output binary on darwin --- pkgs/development/tools/loganalyzer/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/loganalyzer/default.nix b/pkgs/development/tools/loganalyzer/default.nix index 818dd1052520..34c6021f02fd 100644 --- a/pkgs/development/tools/loganalyzer/default.nix +++ b/pkgs/development/tools/loganalyzer/default.nix @@ -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";