From 7ca063e9d128399edd96cf5902af70541e90e53b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 18 Feb 2026 07:58:54 +0000 Subject: [PATCH] mas: clean up after `x86_64-darwin` drop --- pkgs/by-name/ma/mas/package.nix | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/ma/mas/package.nix b/pkgs/by-name/ma/mas/package.nix index fc07f3ad0c03..5e34f52f41bc 100644 --- a/pkgs/by-name/ma/mas/package.nix +++ b/pkgs/by-name/ma/mas/package.nix @@ -15,23 +15,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { __structuredAttrs = true; - src = - let - # nix store prefetch-file https://github.com/mas-cli/mas/releases/download/v$VERSION/mas-$VERSION-$ARCH.pkg - sources = - { - aarch64-darwin = { - arch = "arm64"; - hash = "sha256-vCGKhUyF2eHJVJapayYoe7ZgVrlWiLkPkdBPpi7SG3U="; - }; - } - .${stdenvNoCC.hostPlatform.system} - or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}"); - in - fetchurl { - url = "https://github.com/mas-cli/mas/releases/download/v${finalAttrs.version}/mas-${finalAttrs.version}-${sources.arch}.pkg"; - inherit (sources) hash; - }; + # nix store prefetch-file https://github.com/mas-cli/mas/releases/download/v$VERSION/mas-$VERSION-arm64.pkg + src = fetchurl { + url = "https://github.com/mas-cli/mas/releases/download/v${finalAttrs.version}/mas-${finalAttrs.version}-arm64.pkg"; + hash = "sha256-vCGKhUyF2eHJVJapayYoe7ZgVrlWiLkPkdBPpi7SG3U="; + }; nativeBuildInputs = [ installShellFiles