mochi: drop x86_64-darwin from update script

This commit is contained in:
Emily
2026-02-18 07:11:35 +00:00
parent 380fb22754
commit c93b651c03
2 changed files with 7 additions and 13 deletions
+2 -6
View File
@@ -41,12 +41,8 @@ let
inherit pname version meta;
src = fetchurl {
url = "https://download.mochi.cards/releases/Mochi-${version}${lib.optionalString stdenv.hostPlatform.isAarch64 "-arm64"}.dmg";
hash =
if stdenv.hostPlatform.isAarch64 then
"sha256-2NADaVzkibWjxBymeF1McGEQH6xHaqDMBg080kCI0F8="
else
"sha256-XM4vQVQ9QtvqyDu2Wx/8/Z+8H2DetfCufJYrX/1JHFw=";
url = "https://download.mochi.cards/releases/Mochi-${version}-arm64.dmg";
hash = "sha256-2NADaVzkibWjxBymeF1McGEQH6xHaqDMBg080kCI0F8=";
};
sourceRoot = ".";
+5 -7
View File
@@ -17,10 +17,8 @@ fi
# Update version and hash for x86_64-linux (AppImage)
update-source-version mochi "$latestVersion" --system=x86_64-linux
# Update hashes for darwin systems
for system in x86_64-darwin aarch64-darwin; do
url=$(nix-instantiate --eval --json -E "with import ./. { system = \"$system\"; }; mochi.src.url" | tr -d '"')
hash=$(nix-prefetch-url "$url")
sriHash=$(nix --extra-experimental-features nix-command hash convert --hash-algo sha256 --to sri "$hash")
update-source-version mochi "$latestVersion" "$sriHash" --system="$system" --ignore-same-version
done
# Update hash for aarch64-darwin
url=$(nix-instantiate --eval --json -E "with import ./. { system = \"aarch64-darwin\"; }; mochi.src.url" | tr -d '"')
hash=$(nix-prefetch-url "$url")
sriHash=$(nix --extra-experimental-features nix-command hash convert --hash-algo sha256 --to sri "$hash")
update-source-version mochi "$latestVersion" "$sriHash" --system=aarch64-darwin --ignore-same-version