mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
tidgi: drop x86_64-darwin from update script
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user