loganalyzer: Fix output binary on darwin (#520943)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user