diff --git a/pkgs/by-name/mo/modrinth-app-unwrapped/package.nix b/pkgs/by-name/mo/modrinth-app-unwrapped/package.nix index 9df472684753..e93e99ea610f 100644 --- a/pkgs/by-name/mo/modrinth-app-unwrapped/package.nix +++ b/pkgs/by-name/mo/modrinth-app-unwrapped/package.nix @@ -74,6 +74,7 @@ rustPlatform.buildRustPackage rec { postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' + mkdir -p "$out"/bin mv "$out"/Applications/Modrinth\ App.app/Contents/MacOS/Modrinth\ App "$out"/bin/modrinth-app ln -s "$out"/bin/modrinth-app "$out"/Applications/Modrinth\ App.app/Contents/MacOS/Modrinth\ App '' @@ -101,7 +102,9 @@ rustPlatform.buildRustPackage rec { maintainers = with lib.maintainers; [ getchoo ]; mainProgram = "modrinth-app"; platforms = with lib; platforms.linux ++ platforms.darwin; - # this builds on architectures like aarch64, but the launcher itself does not support them yet - broken = !stdenv.hostPlatform.isx86_64; + # This builds on architectures like aarch64, but the launcher itself does not support them yet. + # Darwin is the only exception + # See https://github.com/modrinth/code/issues/776#issuecomment-1742495678 + broken = !stdenv.hostPlatform.isx86_64 && !stdenv.hostPlatform.isDarwin; }; }