diff --git a/pkgs/by-name/ti/tidgi/package.nix b/pkgs/by-name/ti/tidgi/package.nix index 291abd95e9b4..5d60806bbe93 100644 --- a/pkgs/by-name/ti/tidgi/package.nix +++ b/pkgs/by-name/ti/tidgi/package.nix @@ -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 '';