mas: clean up after x86_64-darwin drop

This commit is contained in:
Emily
2026-02-18 07:58:54 +00:00
parent 1234cb922a
commit 7ca063e9d1

View File

@@ -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