Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
22 lines
835 B
Bash
Executable File
22 lines
835 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p curl jq common-updater-scripts
|
|
|
|
set -euo pipefail
|
|
|
|
latestVersion=$(curl -sL https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION | jq --raw-output .version)
|
|
currentVersion=$(nix eval --raw -f . dart.version)
|
|
|
|
if [[ "$latestVersion" == "$currentVersion" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
MY_PATH=$(dirname $(realpath "$0"))
|
|
|
|
update-source-version dart $latestVersion --file=$MY_PATH/sources.nix
|
|
|
|
systems=$(nix eval --json -f . dart.meta.platforms | jq --raw-output '.[]')
|
|
for system in $systems; do
|
|
hash=$(nix hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix eval --raw -f . dart.src.url --system "$system")))
|
|
update-source-version dart $latestVersion $hash --file=$MY_PATH/sources.nix --system=$system --ignore-same-version --ignore-same-hash
|
|
done
|