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";