tidgi: drop x86_64-darwin from update script

This commit is contained in:
Emily
2026-02-18 08:01:09 +00:00
parent edb5a960e5
commit a76ba612d6

View File

@@ -13,14 +13,10 @@ stdenv.mkDerivation (finalAttrs: {
pname = "tidgi";
version = "0.12.4";
src =
{
aarch64-darwin = fetchurl {
url = "https://github.com/tiddly-gittly/TidGi-Desktop/releases/download/v${finalAttrs.version}/TidGi-darwin-arm64-${finalAttrs.version}.zip";
hash = "sha256-bSJFM67+KVECUqjwu1HYipn+zOps1ahNzM721yZL52c=";
};
}
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
src = fetchurl {
url = "https://github.com/tiddly-gittly/TidGi-Desktop/releases/download/v${finalAttrs.version}/TidGi-darwin-arm64-${finalAttrs.version}.zip";
hash = "sha256-bSJFM67+KVECUqjwu1HYipn+zOps1ahNzM721yZL52c=";
};
dontBuild = true;
@@ -51,10 +47,7 @@ stdenv.mkDerivation (finalAttrs: {
regex: '^\s*version\s*='
fix: 'version = \"$latestVersion\";'
" --update-all $(env EDITOR=echo nix edit --file . tidgi)
systems=$(nix eval --json -f . tidgi.meta.platforms | ${lib.getExe jq} --raw-output '.[]')
for system in $systems; do
hash=$(nix hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix eval --raw --file . tidgi.src.url --system "$system")))
${lib.getExe' common-updater-scripts "update-source-version"} tidgi $latestVersion $hash --system=$system --ignore-same-version --ignore-same-hash
${lib.getExe' common-updater-scripts "update-source-version"} tidgi $latestVersion --ignore-same-version --ignore-same-hash
done
'';