diff --git a/default.nix b/default.nix index 5494df23d5..b350503542 100644 --- a/default.nix +++ b/default.nix @@ -67,7 +67,7 @@ stdenv.mkDerivation { + lib.optionalString stdenv.hostPlatform.isLinux '' ln -s $out/bin/${appname} $out/bin/${pname} '' - # Remame application for macOS as lowercase binary + # Rename application for macOS as lowercase binary + lib.optionalString stdenv.hostPlatform.isDarwin '' # Prevent "same file" error mv $out/bin/${appname} $out/bin/${pname}.bin