From 3ebad8b9cd491f43607ad5e875867307b55ceb8a Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Wed, 2 Oct 2024 06:30:39 -0400 Subject: [PATCH] modrinth-app-unwrapped: Adjust `broken` tag to only apply to Linux on aarch64 Update pkgs/by-name/mo/modrinth-app-unwrapped/package.nix Co-authored-by: seth Update pkgs/by-name/mo/modrinth-app-unwrapped/package.nix Co-authored-by: seth --- pkgs/by-name/mo/modrinth-app-unwrapped/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }; }