diff --git a/default.nix b/default.nix index e739e8804f..44f589d5bd 100644 --- a/default.nix +++ b/default.nix @@ -61,12 +61,10 @@ stdenv.mkDerivation { + lib.optionalString stdenv.isLinux '' ln -s $out/bin/${appname} $out/bin/${pname} '' - # Wrap application for macOS as lowercase binary + # Remame application for macOS as lowercase binary + lib.optionalString stdenv.isDarwin '' - mkdir -p $out/Applications find $out - mv $out/bin/${appname}.app $out/Applications - makeWrapper $out/Applications/${appname}.app/Contents/MacOS/${appname} $out/bin/${pname} + mv $out/bin/${appname} $out/bin/${pname} ''; meta = with lib; {