treewide: drop x86_64-darwin from update scripts (#541166)

This commit is contained in:
zowoq
2026-07-16 01:27:09 +00:00
committed by GitHub
100 changed files with 79 additions and 324 deletions

View File

@@ -78,7 +78,5 @@ Any comments or other manual changes between these markers will be removed when
- on `aarch64-linux`:
- from source build
- see if build (binary or source) works without expat
- on `x86_64-darwin`:
- from source build
- on `aarch64-darwin`:
- from source build

View File

@@ -3,7 +3,7 @@ import os
import dataclasses
from pathlib import Path
SUPPORTED_SYSTEMS = ["x86_64-linux", "aarch64-linux", "x86_64-darwin", "aarch64-darwin"]
SUPPORTED_SYSTEMS = ["x86_64-linux", "aarch64-linux", "aarch64-darwin"]
def find_nixpkgs(current_path: Path) -> Path:

View File

@@ -21,8 +21,7 @@ for i in \
"aarch64-linux linux-arm64 tar.gz" \
"armv7l-linux linux-armhf tar.gz" \
"loongarch64-linux linux-loong64 tar.gz" \
"aarch64-darwin darwin-arm64 zip" \
"x86_64-darwin darwin-x64 zip"; do
"aarch64-darwin darwin-arm64 zip"; do
set -- $i
hash=$(nix --extra-experimental-features nix-command hash convert --hash-algo sha256 --to sri $(nix-prefetch-url "https://github.com/VSCodium/vscodium/releases/download/$latestVersion/VSCodium-$2-$latestVersion.$3"))
update-source-version vscodium $latestVersion $hash --system=$1 --ignore-same-version

View File

@@ -3,7 +3,6 @@
"version": "150.0.7871.124",
"chromedriver": {
"version": "150.0.7871.125",
"hash_darwin": "sha256-HJTBS6eRmAsxrn7WW4hCxMCXdzn+1PYz1W0uZHJ38yk=",
"hash_darwin_aarch64": "sha256-VCgkc6MeMPbt0F2ZVTJNn9yJbSYNhy1zr8KzPVaVi0I="
},
"deps": {

View File

@@ -170,7 +170,6 @@ async function fetch_chromedriver_binaries(version) {
const url = (platform) => `https://storage.googleapis.com/chrome-for-testing-public/${version}/${platform}/chromedriver-${platform}.zip`
return {
version,
hash_darwin: await prefetch(url('mac-x64')),
hash_darwin_aarch64: await prefetch(url('mac-arm64')),
}
}

View File

@@ -12,22 +12,15 @@ let
version = "26.2.4";
dist = {
aarch64-darwin = rec {
arch = "aarch64";
archSuffix = arch;
url = "https://download.documentfoundation.org/libreoffice/stable/${version}/mac/${arch}/LibreOffice_${version}_MacOS_${archSuffix}.dmg";
sha256 = "64e0ad05564554eeee639d49b08b20908a38d4722ec95f1620d05c99bcbe9fb1";
};
url = "https://download.documentfoundation.org/libreoffice/stable/${version}/mac/aarch64/LibreOffice_${version}_MacOS_aarch64.dmg";
sha256 = "64e0ad05564554eeee639d49b08b20908a38d4722ec95f1620d05c99bcbe9fb1";
};
in
stdenvNoCC.mkDerivation {
inherit version;
pname = "libreoffice";
src = fetchurl {
inherit
(dist.${stdenvNoCC.hostPlatform.system}
or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}")
)
inherit (dist)
url
sha256
;
@@ -52,16 +45,13 @@ stdenvNoCC.mkDerivation {
let
defaultNixFile = toString ./default.nix;
updateNix = toString ./update.nix;
aarch64Url = dist."aarch64-darwin".url;
x86_64Url = dist."x86_64-darwin".url;
in
writeScript "update-libreoffice.sh" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash --argstr aarch64Url ${aarch64Url} --argstr x86_64Url ${x86_64Url} --argstr version ${version} ${updateNix}
#!nix-shell -i bash --argstr url ${dist.url} --argstr version ${version} ${updateNix}
set -eou pipefail
update-source-version libreoffice-bin $newVersion $newAarch64Sha256 --file=${defaultNixFile} --system=aarch64-darwin --ignore-same-version
update-source-version libreoffice-bin $newVersion $newX86_64Sha256 --file=${defaultNixFile} --system=x86_64-darwin --ignore-same-version
update-source-version libreoffice-bin $newVersion $newSha256 --file=${defaultNixFile} --ignore-same-version
'';
meta = {

View File

@@ -1,7 +1,6 @@
# Impure functions, for passthru.updateScript runtime only
{
aarch64Url,
x86_64Url,
url,
version,
pkgs ? import ../../../../../default.nix { },
}:
@@ -14,6 +13,5 @@ in
pkgs.mkShell rec {
buildInputs = [ pkgs.common-updater-scripts ];
newVersion = getLatestStableVersion;
newAarch64Sha256 = getSha256 aarch64Url version newVersion;
newX86_64Sha256 = getSha256 x86_64Url version newVersion;
newSha256 = getSha256 url version newVersion;
}

View File

@@ -10,7 +10,7 @@ from urllib.request import urlopen, Request
def get_arch_os_key(url) -> str:
if "darwin_amd64" in url:
return "x86_64-darwin"
return None
elif "darwin_arm64" in url:
return "aarch64-darwin"
elif "linux_amd64" in url:
@@ -57,9 +57,8 @@ def parse_and_check(content):
)
for url, hex_sha in matches:
key = get_arch_os_key(url)
data["sources"][key] = {"url": url, "sha256": hex_sha}
if key := get_arch_os_key(url):
data["sources"][key] = {"url": url, "sha256": hex_sha}
data["sources"] = dict(sorted(data["sources"].items()))

View File

@@ -10,7 +10,6 @@ cd "$(dirname "${BASH_SOURCE[0]}")/../../../.."
for system in \
x86_64-linux \
aarch64-linux \
x86_64-darwin \
aarch64-darwin
do
update-source-version amp-cli "$version" \

View File

@@ -25,7 +25,6 @@ update-source-version --version-key=version antigravity-cli $latestVersion || tr
for system in \
x86_64-linux \
aarch64-linux \
x86_64-darwin \
aarch64-darwin; do
hash=$(nix store prefetch-file --json --hash-type sha256 \
$(nix-instantiate --eval --raw -E "with import ./. {}; antigravity-cli.src.url" --system "$system") | jq -r '.hash')

View File

@@ -13,12 +13,12 @@ import * as path from "node:path";
* @property {string} sha256hash SHA256 hash of the download file, example: "8eb01462dc4f26aba45be4992bda0b145d1ec210c63a6272578af27e59f23bef"
* @property {string} url Download URL, example: "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/1.11.2-6251250307170304/linux-arm/Antigravity.tar.gz", "https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/1.11.2-6251250307170304/darwin-x64/Antigravity.zip"
*/
/** @typedef {"x86_64-linux" | "aarch64-linux" | "x86_64-darwin" | "aarch64-darwin"} Platform */
/** @typedef {"x86_64-linux" | "aarch64-linux" | "aarch64-darwin"} Platform */
/** @typedef {{ version: string; vscodeVersion: string; sources: Record<Platform, { url: string; sha256: string; }> }} Information */
let version = "";
let vscodeVersion = "";
async function getLatestInformation(/** @type {"linux-x64" | "linux-arm64" | "darwin-arm64" | "darwin"} */ targetSystem) {
async function getLatestInformation(/** @type {"linux-x64" | "linux-arm64" | "darwin-arm64"} */ targetSystem) {
/** @type {UpdateInfo} */
const latestInfo = await (await fetch(`https://antigravity-auto-updater-974169037036.us-central1.run.app/api/update/${targetSystem}/stable/latest`)).json();
const newVersion = /\/antigravity\/stable\/([\d.]+)-[\d]+/.exec(latestInfo.url)?.[1] ?? ""; // Current API lack version field now, we need to parse it from the URL temporarily.
@@ -35,7 +35,6 @@ async function getLatestInformation(/** @type {"linux-x64" | "linux-arm64" | "da
const sources = {
"x86_64-linux": await getLatestInformation("linux-x64"),
"aarch64-linux": await getLatestInformation("linux-arm64"),
"x86_64-darwin": await getLatestInformation("darwin"),
"aarch64-darwin": await getLatestInformation("darwin-arm64"),
};
/** @type {Information} */

View File

@@ -26,13 +26,11 @@ replace_sha() {
BOUNDARY_VER=$(curl -Ls -w "%{url_effective}" -o /dev/null https://github.com/hashicorp/boundary/releases/latest | awk -F'/' '{print $NF}' | sed 's/v//')
BOUNDARY_LINUX_X64_SHA256=$(calc_hash "$BOUNDARY_VER" "linux_amd64")
BOUNDARY_DARWIN_X64_SHA256=$(calc_hash "$BOUNDARY_VER" "darwin_amd64")
BOUNDARY_LINUX_AARCH64_SHA256=$(calc_hash "$BOUNDARY_VER" "linux_arm64")
BOUNDARY_DARWIN_AARCH64_SHA256=$(calc_hash "$BOUNDARY_VER" "darwin_arm64")
sed -i "s/version = \".*\"/version = \"$BOUNDARY_VER\"/" "$NIX_DRV"
replace_sha "x86_64-linux" "$BOUNDARY_LINUX_X64_SHA256"
replace_sha "x86_64-darwin" "$BOUNDARY_DARWIN_X64_SHA256"
replace_sha "aarch64-linux" "$BOUNDARY_LINUX_AARCH64_SHA256"
replace_sha "aarch64-darwin" "$BOUNDARY_DARWIN_AARCH64_SHA256"

View File

@@ -32,7 +32,6 @@ echo "Updating box-cli from $old_version to $version"
declare -A platforms=(
[x86_64-linux]="box-linux-x64"
[aarch64-linux]="box-linux-arm64"
[x86_64-darwin]="box-darwin-x64"
[aarch64-darwin]="box-darwin-arm64"
)

View File

@@ -8,7 +8,6 @@ latestVersion="$(curl --fail -s ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} "https://ap
hashAarch64="$(nix-hash --to-sri --type sha256 "$(nix-prefetch-url --type sha256 "https://github.com/brave/brave-browser/releases/download/v${latestVersion}/brave-browser_${latestVersion}_arm64.deb")")"
hashAmd64="$(nix-hash --to-sri --type sha256 "$(nix-prefetch-url --type sha256 "https://github.com/brave/brave-browser/releases/download/v${latestVersion}/brave-browser_${latestVersion}_amd64.deb")")"
hashAarch64Darwin="$(nix-hash --to-sri --type sha256 "$(nix-prefetch-url --type sha256 "https://github.com/brave/brave-browser/releases/download/v${latestVersion}/brave-v${latestVersion}-darwin-arm64.zip")")"
hashAmd64Darwin="$(nix-hash --to-sri --type sha256 "$(nix-prefetch-url --type sha256 "https://github.com/brave/brave-browser/releases/download/v${latestVersion}/brave-v${latestVersion}-darwin-x64.zip")")"
cat > $SCRIPT_DIR/package.nix << EOF
# Expression generated by update.sh; do not edit it by hand!
@@ -31,10 +30,6 @@ let
url = "https://github.com/brave/brave-browser/releases/download/v\${version}/brave-v\${version}-darwin-arm64.zip";
hash = "${hashAarch64Darwin}";
};
x86_64-darwin = {
url = "https://github.com/brave/brave-browser/releases/download/v\${version}/brave-v\${version}-darwin-x64.zip";
hash = "${hashAmd64Darwin}";
};
};
archive =

View File

@@ -36,7 +36,6 @@ fetchLibrustyV8 {
# NOTE; Follows supported platforms of package (see meta.platforms attribute)!
x86_64-linux = "$(nix-prefetch-url --type sha256 https://github.com/denoland/rusty_v8/releases/download/v"$NEW_VERSION"/librusty_v8_release_x86_64-unknown-linux-gnu.a.gz)";
aarch64-linux = "$(nix-prefetch-url --type sha256 https://github.com/denoland/rusty_v8/releases/download/v"$NEW_VERSION"/librusty_v8_release_aarch64-unknown-linux-gnu.a.gz)";
x86_64-darwin = "$(nix-prefetch-url --type sha256 https://github.com/denoland/rusty_v8/releases/download/v"$NEW_VERSION"/librusty_v8_release_x86_64-apple-darwin.a.gz)";
aarch64-darwin = "$(nix-prefetch-url --type sha256 https://github.com/denoland/rusty_v8/releases/download/v"$NEW_VERSION"/librusty_v8_release_aarch64-apple-darwin.a.gz)";
};
}

View File

@@ -5,7 +5,6 @@
const ARCHES = [
{ name: "x86_64-linux", target: "x86_64-unknown-linux-gnu" },
{ name: "x86_64-darwin", target: "x86_64-apple-darwin" },
{ name: "aarch64-linux", target: "aarch64-unknown-linux-gnu" },
{ name: "aarch64-darwin", target: "aarch64-apple-darwin" },
];

View File

@@ -15,7 +15,6 @@ fi
for i in \
"x86_64-linux linux-x86_64" \
"aarch64-linux linux-aarch64" \
"x86_64-darwin macos-x86_64" \
"aarch64-darwin macos-aarch64"; do
set -- $i
prefetch=$(nix-prefetch-url "https://github.com/cloud-fs/cloud-fs.github.io/releases/download/v$latestVersion/clouddrive-2-$2-$latestVersion.tgz")

View File

@@ -17,7 +17,6 @@ VSCODE=""
for pair in \
x86_64-linux:linux-x64 \
aarch64-linux:linux-arm64 \
x86_64-darwin:darwin-x64 \
aarch64-darwin:darwin-arm64
do
IFS=: read -r sys platform <<< "$pair"

View File

@@ -24,12 +24,10 @@ CODEIUM_VER=$(curl -s "https://api.github.com/repos/Exafunction/codeium/releases
CODEIUM_LINUX_X64_HASH=$(fetch_arch "$CODEIUM_VER" "linux_x64")
CODEIUM_LINUX_AARCH64_HASH=$(fetch_arch "$CODEIUM_VER" "linux_arm")
CODEIUM_DARWIN_X64_HASH=$(fetch_arch "$CODEIUM_VER" "macos_x64")
CODEIUM_DARWIN_AARCH64_HASH=$(fetch_arch "$CODEIUM_VER" "macos_arm")
sed -i "s/version = \".*\"/version = \"$CODEIUM_VER\"/" "$NIX_DRV"
replace_hash "x86_64-linux" "$CODEIUM_LINUX_X64_HASH"
replace_hash "aarch64-linux" "$CODEIUM_LINUX_AARCH64_HASH"
replace_hash "x86_64-darwin" "$CODEIUM_DARWIN_X64_HASH"
replace_hash "aarch64-darwin" "$CODEIUM_DARWIN_AARCH64_HASH"

View File

@@ -13,7 +13,6 @@ LATEST_MAINLINE_VERSION=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} --fail
# Define the platforms
declare -A ARCHS=(["x86_64-linux"]="linux_amd64.tar.gz"
["aarch64-linux"]="linux_arm64.tar.gz"
["x86_64-darwin"]="darwin_amd64.zip"
["aarch64-darwin"]="darwin_arm64.zip")
update_version_and_hashes() {

View File

@@ -141,7 +141,6 @@ fetchurl {
{
x86_64-linux = "${V8_HASH_X86_64_LINUX}";
aarch64-linux = "${V8_HASH_AARCH64_LINUX}";
x86_64-darwin = "${V8_HASH_X86_64_DARWIN}";
aarch64-darwin = "${V8_HASH_AARCH64_DARWIN}";
}
.\${stdenv.hostPlatform.system}
@@ -198,9 +197,8 @@ export CODEX_HASH
V8_HASH_X86_64_LINUX="$(prefetch_sri "https://github.com/denoland/rusty_v8/releases/download/v${V8_VERSION}/librusty_v8_release_x86_64-unknown-linux-gnu.a.gz")"
V8_HASH_AARCH64_LINUX="$(prefetch_sri "https://github.com/denoland/rusty_v8/releases/download/v${V8_VERSION}/librusty_v8_release_aarch64-unknown-linux-gnu.a.gz")"
V8_HASH_X86_64_DARWIN="$(prefetch_sri "https://github.com/denoland/rusty_v8/releases/download/v${V8_VERSION}/librusty_v8_release_x86_64-apple-darwin.a.gz")"
V8_HASH_AARCH64_DARWIN="$(prefetch_sri "https://github.com/denoland/rusty_v8/releases/download/v${V8_VERSION}/librusty_v8_release_aarch64-apple-darwin.a.gz")"
export V8_VERSION V8_HASH_X86_64_LINUX V8_HASH_AARCH64_LINUX V8_HASH_X86_64_DARWIN V8_HASH_AARCH64_DARWIN
export V8_VERSION V8_HASH_X86_64_LINUX V8_HASH_AARCH64_LINUX V8_HASH_AARCH64_DARWIN
update-source-version "$ATTR_PATH" "$latest_version" "$src_hash" --ignore-same-version
update_codex_pins

View File

@@ -23,7 +23,6 @@ fi
for i in \
"x86_64-linux linux_amd64" \
"aarch64-linux linux_arm64" \
"x86_64-darwin darwin_amd64" \
"aarch64-darwin darwin_arm64"; do
set -- $i
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(nix-prefetch-url "https://s3-us-west-2.amazonaws.com/confluent.cloud/confluent-cli/archives/$latestVersion/confluent_${latestVersion}_$2.tar.gz"))

View File

@@ -22,7 +22,7 @@ if [[ "$latestVersion" == "$currentVersion" ]]; then
exit 0
fi
declare -A platforms=( [x86_64-linux]="linux/x64" [aarch64-linux]="linux/arm64" [x86_64-darwin]="darwin/x64" [aarch64-darwin]="darwin/arm64" )
declare -A platforms=( [x86_64-linux]="linux/x64" [aarch64-linux]="linux/arm64" [aarch64-darwin]="darwin/arm64" )
for platform in "${!platforms[@]}"; do
url="https://downloads.cursor.com/lab/$release/${platforms[$platform]}/agent-cli-package.tar.gz"

View File

@@ -18,7 +18,6 @@ fi
for i in \
"x86_64-linux linux-x86_64.tar.gz" \
"aarch64-linux linux-aarch64.tar.gz" \
"x86_64-darwin macos-x86_64.dmg" \
"aarch64-darwin macos-aarch64.dmg"
do
# shellcheck disable=SC2086 # $i is intentionally splitted to $1 and $2

View File

@@ -15,7 +15,6 @@ fi
for system in \
x86_64-linux \
aarch64-linux \
x86_64-darwin \
aarch64-darwin; do
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix-instantiate --eval -E "with import ./. {}; dbgate.src.url" --system "$system" | tr -d '"')))
update-source-version dbgate $latestVersion $hash --system=$system --ignore-same-version

View File

@@ -7,7 +7,6 @@ from os.path import join, dirname
# We set oldHash and newHash fields in the inner dict later.
systems = {
"x86_64-linux": {"os": "linux", "arch": "amd64"},
"x86_64-darwin": {"os": "macos", "arch": "amd64"},
"aarch64-linux": {"os": "linux", "arch": "aarch64"},
"aarch64-darwin": {"os": "macos", "arch": "aarch64"},
}

View File

@@ -34,10 +34,9 @@ jq '
elif .url | contains("linux-x86_64") then
{key: "x86_64-linux", value: .}
elif .url | contains("macOS-universal") then
[{key: "aarch64-darwin", value: .}, {key: "x86_64-darwin", value: .}]
{key: "aarch64-darwin", value: .}
else null end
)
| flatten
| from_entries
)
}

View File

@@ -14,7 +14,6 @@ version=$(curl -fsSL https://api.gitkraken.dev/releases/production/linux/x64/REL
# Hardcoded URLs to compute hashes
declare -A tarballs=(
["x86_64-linux"]="https://api.gitkraken.dev/releases/production/linux/x64/${version}/gitkraken-amd64.tar.gz"
["x86_64-darwin"]="https://api.gitkraken.dev/releases/production/darwin/x64/${version}/GitKraken-v${version}.zip"
["aarch64-darwin"]="https://api.gitkraken.dev/releases/production/darwin/arm64/${version}/GitKraken-v${version}.zip"
)

View File

@@ -30,9 +30,6 @@ EOF
echo -n " x86_64-linux ="
genMainSrc "linux" "x86_64"
echo -n " x86_64-darwin ="
genMainSrc "darwin" "x86_64"
echo -n " aarch64-linux ="
genMainSrc "linux" "arm"

View File

@@ -16,7 +16,7 @@ fi
update-source-version grok-build "${version}" || true
for system in "aarch64-darwin macos-aarch64" "aarch64-linux linux-aarch64" "x86_64-darwin macos-x86_64" "x86_64-linux linux-x86_64"; do
for system in "aarch64-darwin macos-aarch64" "aarch64-linux linux-aarch64" "x86_64-linux linux-x86_64"; do
# shellcheck disable=SC2086
set -- ${system}

View File

@@ -17,7 +17,6 @@ update-source-version hoppscotch $latestVersion || true
for system in \
x86_64-linux \
x86_64-darwin \
aarch64-darwin; do
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix-instantiate --eval -E "with import $BASEDIR {}; hoppscotch.src.url" --system "$system" | tr -d '"')))
(cd $BASEDIR && update-source-version hoppscotch $latestVersion $hash --system=$system --ignore-same-version)

View File

@@ -21,13 +21,7 @@ let
"s390x"
else
throw "Unsupported arch: ${stdenv.hostPlatform.system}";
platform =
if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then
"macos_arm64"
else if stdenv.hostPlatform.isDarwin then
"macos"
else
"linux_${arch}";
platform = if stdenv.hostPlatform.isDarwin then "macos_arm64" else "linux_${arch}";
in
stdenv.mkDerivation (finalAttrs: {
pname = "ibmcloud-cli";

View File

@@ -19,7 +19,6 @@ for system in \
i686-linux \
powerpc64le-linux \
s390x-linux \
x86_64-darwin \
aarch64-darwin; do
tmp=$(mktemp -d)
curl -fsSL -o $tmp/ibmcloud-cli $(nix-instantiate --eval -E "with import ./. {}; ibmcloud-cli.src.url" --system "$system" | tr -d '"')

View File

@@ -17,12 +17,6 @@ stdenv.mkDerivation (finalAttrs: {
version = "2.10.0";
src =
let
darwinDmg = fetchurl {
url = "https://desktop-release.q.us-east-1.amazonaws.com/${finalAttrs.version}/Kiro%20CLI.dmg";
hash = "sha256-NDeyXQO9NBsK3xqAEcO1gGn9ta+ZVQ1GNwZ4hbGUe3Q=";
};
in
{
x86_64-linux = fetchurl {
url = "https://desktop-release.q.us-east-1.amazonaws.com/${finalAttrs.version}/kirocli-x86_64-linux.tar.gz";
@@ -32,7 +26,10 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://desktop-release.q.us-east-1.amazonaws.com/${finalAttrs.version}/kirocli-aarch64-linux.tar.gz";
hash = "sha256-39hKSRi1l5ruSqObViksJkufiCOvLTaIkQzT3sNQFQQ=";
};
aarch64-darwin = darwinDmg;
aarch64-darwin = fetchurl {
url = "https://desktop-release.q.us-east-1.amazonaws.com/${finalAttrs.version}/Kiro%20CLI.dmg";
hash = "sha256-NDeyXQO9NBsK3xqAEcO1gGn9ta+ZVQ1GNwZ4hbGUe3Q=";
};
}
.${system} or (throw "Unsupported system: ${system}");

View File

@@ -63,7 +63,7 @@ echo "darwin hash: $darwin_hash"
# Get current hashes from package.nix
current_x86_hash=$(grep -A2 'x86_64-linux = fetchurl' "$PACKAGE_NIX" | grep -Po 'hash = "\K[^"]+')
current_aarch64_hash=$(grep -A2 'aarch64-linux = fetchurl' "$PACKAGE_NIX" | grep -Po 'hash = "\K[^"]+')
current_darwin_hash=$(grep -A2 'darwinDmg = fetchurl' "$PACKAGE_NIX" | grep -Po 'hash = "\K[^"]+')
current_darwin_hash=$(grep -A2 'aarch64-darwin = fetchurl' "$PACKAGE_NIX" | grep -Po 'hash = "\K[^"]+')
# Update version and hashes
sed -i "s|version = \"$current_version\"|version = \"$latest_version\"|" "$PACKAGE_NIX"

View File

@@ -12,7 +12,6 @@ SOURCES_JSON="${SCRIPT_DIR}/sources.json"
# Platform configuration
declare -A PLATFORM_URLS=(
["x86_64-linux"]="https://prod.download.desktop.kiro.dev/stable/metadata-linux-x64-stable.json"
["x86_64-darwin"]="https://prod.download.desktop.kiro.dev/stable/metadata-dmg-darwin-x64-stable.json"
["aarch64-darwin"]="https://prod.download.desktop.kiro.dev/stable/metadata-dmg-darwin-arm64-stable.json"
)

View File

@@ -60,5 +60,4 @@ applyUpdate() {
}
applyUpdate x86_64-linux Linux
applyUpdate x86_64-darwin macOS
applyUpdate aarch64-darwin "macOS arm64"

View File

@@ -28,10 +28,9 @@ appimage_hash=$(manifest_hash '.x86_64.AppImage' "$linux_manifest")
dmg_hash=$(manifest_hash '-latest.dmg' "$mac_manifest")
arm64_dmg_hash=$(manifest_hash '-arm64.dmg' "$mac_manifest")
# The three platforms share one version but have distinct hashes. --system picks
# The two platforms share one version but have distinct hashes. --system picks
# which source (and therefore which hash) update-source-version rewrites; passing
# the hash explicitly avoids a download. The version is written on the first call,
# so the darwin calls need --ignore-same-version to not early-exit as "unchanged".
update-source-version lens "$version" "$appimage_hash" --system=x86_64-linux
update-source-version lens "$version" "$dmg_hash" --system=x86_64-darwin --ignore-same-version
update-source-version lens "$version" "$arm64_dmg_hash" --system=aarch64-darwin --ignore-same-version

View File

@@ -12,7 +12,6 @@ platforms = {
"x86_64-linux": "linux_x86_64",
"aarch64-linux": "linux_aarch64",
"aarch64-darwin": "mac_universal",
"x86_64-darwin": "mac_universal",
}
if __name__ == "__main__":

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 = ".";

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

View File

@@ -18,7 +18,6 @@ fi
for i in \
"x86_64-linux linux_x86_64.AppImage" \
"aarch64-linux linux_arm64.AppImage" \
"x86_64-darwin mac_x64.dmg" \
"aarch64-darwin mac_arm64.dmg"; do
set -- $i
hash=$(nix-hash --to-sri --type sha256 "$(nix-prefetch-url "https://github.com/streetwriters/notesnook/releases/download/v$latestVersion/notesnook_$2")")

View File

@@ -17,7 +17,6 @@ declare -a packages
architectures["x86_64-linux"]="x86_64-unknown-linux-gnu"
architectures["aarch64-linux"]="aarch64-unknown-linux-gnu"
# NOTE: segger-jlink is not yet packaged for darwin
# architectures["x86_64-darwin"]="x86_64-apple-darwin"
# architectures["aarch64-darwin"]="aarch64-apple-darwin"
packages=(

View File

@@ -30,7 +30,6 @@ let
hash_amd64-linux = "sha256-tmUfDKLO35qCs1hauJQKhJhcnMhqOpcqDFtAggMFhLE=";
hash_arm64-linux = "sha256-ggRDW1cnTHMQKvOvCDH3eptH3O3PgYaondlzOGHTjio=";
hash_arm-linux = "sha256-uMLRow1NeHufSI5B4k5qSIfH3lTxg+WxzLxgdedAz40=";
hash_amd64-darwin = "sha256-LZ6n/f2MdbFaPnBCoJqZZ7HQiLG3Z6ZoatgFsxaFvMc=";
hash_arm64-darwin = "sha256-k5X2ZInFS/HlToOZPX23TRJqlx/XM1ZG++Xr4BHn8SY=";
}
."hash_${arch}-${os}";
@@ -73,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.intersectLists lib.platforms.linux (
lib.platforms.arm ++ lib.platforms.aarch64 ++ lib.platforms.x86
))
++ (lib.intersectLists lib.platforms.darwin (lib.platforms.aarch64 ++ lib.platforms.x86_64));
++ lib.platforms.darwin;
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
mainProgram = "ocis";

View File

@@ -251,7 +251,6 @@ def main():
systems = [
("darwin", "arm64", "aarch64-darwin"),
("darwin", "amd64", "x86_64-darwin"),
("linux", "arm64", "aarch64-linux"),
("linux", "arm", "armv7l-linux"),
("linux", "amd64", "x86_64-linux"),

View File

@@ -8,28 +8,17 @@
let
inherit (stdenvNoCC.hostPlatform) system;
version = "2.2.1-20628";
sourceData = {
aarch64-darwin = {
arch = "arm64";
hash = "sha256-W8FxnDyYfExgxlvp/dZbRzCZDhaX7Byxwz5rujG/krU=";
};
};
sources = lib.mapAttrs (
system:
{ arch, hash }:
fetchurl {
url = "https://cdn-updates.orbstack.dev/${arch}/OrbStack_v${
lib.replaceString "-" "_" version
}_${arch}.dmg";
inherit hash;
}
) sourceData;
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "orbstack";
inherit version;
src = finalAttrs.passthru.sources.${system} or (throw "unsupported system ${system}");
src = fetchurl {
url = "https://cdn-updates.orbstack.dev/arm64/OrbStack_v${
lib.replaceString "-" "_" version
}_arm64.dmg";
hash = "sha256-W8FxnDyYfExgxlvp/dZbRzCZDhaX7Byxwz5rujG/krU=";
};
# -snld prevents "ERROR: Dangerous symbolic link path was ignored"
# -xr'!*:com.apple.*' prevents macOS extended attributes (e.g. macl or
@@ -66,7 +55,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
'';
passthru = {
inherit sources;
updateScript = ./update.sh;
};

View File

@@ -4,21 +4,8 @@
set -eu -o pipefail
update_arch() {
local arch="$1"
local system="$2"
source_url="$(curl -L -I "https://orbstack.dev/download/stable/latest/arm64" | grep -i "location:" | awk '{print $2}' | tr -d '\r')"
version="$(echo "$source_url" | grep -o '\([0-9]\+\.\)\{2\}[0-9]\+_[0-9]\+' | sed 's/_/-/')"
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$(nix-prefetch-url --type sha256 "$source_url")")
local source_url
source_url="$(curl -L -I "https://orbstack.dev/download/stable/latest/$arch" | grep -i "location:" | awk '{print $2}' | tr -d '\r')"
local version
version="$(echo "$source_url" | grep -o '\([0-9]\+\.\)\{2\}[0-9]\+_[0-9]\+' | sed 's/_/-/')"
local hash
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$(nix-prefetch-url --type sha256 "$source_url")")
update-source-version orbstack "$version" "$hash" --system="$system" --source-key="sources.$system" --ignore-same-version
}
update_arch "arm64" "aarch64-darwin"
update_arch "amd64" "x86_64-darwin"
update-source-version orbstack "$version" "$hash" --ignore-same-version

View File

@@ -15,7 +15,6 @@ echo "Updating osu-lazer-bin from $old_version to $new_version..."
for pair in \
'aarch64-darwin osu.app.Apple.Silicon.zip' \
'x86_64-darwin osu.app.Intel.zip' \
'x86_64-linux osu.AppImage'
do
set -- $pair

View File

@@ -19,7 +19,6 @@ update-source-version pdfium-binaries $latestVersion || true
for system in \
x86_64-linux \
aarch64-linux \
x86_64-darwin \
aarch64-darwin; do
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(nix-prefetch-url --unpack $(nix-instantiate --eval -E "with import ./. {}; pdfium-binaries.src.url" --system "$system" | tr -d '"')))
update-source-version pdfium-binaries $latestVersion $hash --system=$system --ignore-same-version
@@ -28,7 +27,6 @@ done
for system in \
x86_64-linux \
aarch64-linux \
x86_64-darwin \
aarch64-darwin; do
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(nix-prefetch-url --unpack $(nix-instantiate --eval -E "with import ./. {}; pdfium-binaries-v8.src.url" --system "$system" | tr -d '"')))
update-source-version pdfium-binaries-v8 $latestVersion $hash --system=$system --ignore-same-version

View File

@@ -19,7 +19,6 @@ update-source-version pgsql-tools "$latestVersion" --file=pkgs/by-name/pg/pgsql-
declare -A platforms=(
["x86_64-linux"]="pgsqltoolsservice-linux-x64.tar.gz"
["aarch64-linux"]="pgsqltoolsservice-linux-arm64.tar.gz"
["x86_64-darwin"]="pgsqltoolsservice-osx-x86.tar.gz"
["aarch64-darwin"]="pgsqltoolsservice-osx-arm64.tar.gz"
)

View File

@@ -17,7 +17,6 @@ fi
for system in \
aarch64-linux \
x86_64-darwin \
aarch64-darwin; do
hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix-instantiate --eval -E "with import ./. {}; phoenixd.src.url" --system "$system" | tr -d '"')))
update-source-version phoenixd $latestVersion $hash --system=$system --ignore-same-version

View File

@@ -141,11 +141,6 @@ EOF
genSrcs "linux" "amd64"
echo " ];"
echo " x86_64-darwin = ["
genMainSrc "darwin" "x64"
genSrcs "darwin" "amd64"
echo " ];"
echo " aarch64-linux = ["
genMainSrc "linux" "arm64"
genSrcs "linux" "arm64"

View File

@@ -36,18 +36,14 @@ cat >sources.nix <<EOF
# Generated by ./update.sh - do not update manually!
# Last updated: $(date +%F)
{ fetchurl }:
let
any-darwin = {
{
aarch64-darwin = {
version = "$darwin_version";
src = fetchurl {
url = "$darwin_url";
hash = "$darwin_hash";
};
};
in
{
aarch64-darwin = any-darwin;
x86_64-darwin = any-darwin;
aarch64-linux = {
version = "$linux_version";
src = fetchurl {

View File

@@ -72,6 +72,5 @@ fi
updateHash "$latestVersion" x64 linux x86_64-linux
updateHash "$latestVersion" arm macos aarch64-darwin
updateHash "$latestVersion" x64 macos x86_64-darwin
updateVersion "$latestVersion"

View File

@@ -14,15 +14,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
pname = "raycast";
version = "1.104.17";
src =
{
aarch64-darwin = fetchurl {
name = "Raycast.dmg";
url = "https://releases.raycast.com/releases/${finalAttrs.version}/download?build=arm";
hash = "sha256-muX6PPanjU+ElCQhIfo7Y7cChbTO8Q/gH12ULvBK43s=";
};
}
.${stdenvNoCC.system} or (throw "raycast: ${stdenvNoCC.system} is unsupported.");
src = fetchurl {
name = "Raycast.dmg";
url = "https://releases.raycast.com/releases/${finalAttrs.version}/download?build=arm";
hash = "sha256-muX6PPanjU+ElCQhIfo7Y7cChbTO8Q/gH12ULvBK43s=";
};
dontPatch = true;
dontConfigure = true;
@@ -55,15 +51,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
version=$(echo "$url" | jq -r '.version')
arm_url="https://releases.raycast.com/releases/$version/download?build=arm"
x86_url="https://releases.raycast.com/releases/$version/download?build=x86_64"
arm_hash="sha256-$(curl -sL "$arm_url" | openssl dgst -sha256 -binary | openssl base64)"
x86_hash="sha256-$(curl -sL "$x86_url" | openssl dgst -sha256 -binary | openssl base64)"
sed -i -E \
-e 's|(version = )"[0-9]+\.[0-9]+\.[0-9]+";|\1"'"$version"'";|' \
-e '/aarch64-darwin = fetchurl/,/};/ s|(hash = )"sha256-[A-Za-z0-9+/]+=";|\1"'"$arm_hash"'";|' \
-e '/x86_64-darwin = fetchurl/,/};/ s|(hash = )"sha256-[A-Za-z0-9+/]+=";|\1"'"$x86_hash"'";|' \
-e '/src = fetchurl/,/};/ s|(hash = )"sha256-[A-Za-z0-9+/]+=";|\1"'"$arm_hash"'";|' \
./pkgs/by-name/ra/raycast/package.nix
'';
});

View File

@@ -8,15 +8,12 @@ cd "$(readlink -e "$(dirname "${BASH_SOURCE[0]}")")"
version="1.5"
aarch64_darwin_url="https://github.com/GaloisInc/saw-script/releases/download/v${version}/saw-${version}-macos-15-ARM64-with-solvers.tar.gz"
x86_64_darwin_url="https://github.com/GaloisInc/saw-script/releases/download/v${version}/saw-${version}-macos-15-intel-X64-with-solvers.tar.gz"
x86_64_linux_url="https://github.com/GaloisInc/saw-script/releases/download/v${version}/saw-${version}-ubuntu-22.04-X64-with-solvers.tar.gz"
aarch64_darwin_hash=$(nix-prefetch-url "$aarch64_darwin_url")
x86_64_darwin_hash=$(nix-prefetch-url "$x86_64_darwin_url")
x86_64_linux_hash=$(nix-prefetch-url "$x86_64_linux_url")
aarch64_darwin_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$aarch64_darwin_hash")
x86_64_darwin_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$x86_64_darwin_hash")
x86_64_linux_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$x86_64_linux_hash")
sed -i "s/version = \".*\"/version = \"${version}\"/" package.nix
@@ -29,10 +26,6 @@ cat >sources.nix <<EOF
url = "$aarch64_darwin_url";
hash = "$aarch64_darwin_hash";
};
x86_64-darwin = {
url = "$x86_64_darwin_url";
hash = "$x86_64_darwin_hash";
};
x86_64-linux = {
url = "$x86_64_linux_url";
hash = "$x86_64_linux_hash";

View File

@@ -18,7 +18,6 @@ ARCH_MAP = {
'aarch64-linux': Arch(os='Linux', name='arm64', ext='tgz'),
'armv7l-linux': Arch(os='Linux', name='arm', ext='tgz'),
'aarch64-darwin': Arch(os='MacOSX', name='arm64', ext='pkg'),
'x86_64-darwin': Arch(os='MacOSX', name='x86_64', ext='pkg'),
}

View File

@@ -6,25 +6,20 @@ set -euo pipefail
cd $(readlink -e $(dirname "${BASH_SOURCE[0]}"))
aarch64_darwin_data=$(curl -s 'https://slack.com/api/desktop.latestRelease?arch=arm64&variant=dmg')
x86_64_darwin_data=$(curl -s 'https://slack.com/api/desktop.latestRelease?arch=x64&variant=dmg')
x86_64_linux_data=$(curl -s 'https://slack.com/api/desktop.latestRelease?arch=x64&variant=deb')
aarch64_darwin_version=$(jq -r .version <<< "$aarch64_darwin_data")
x86_64_darwin_version=$(jq -r .version <<< "$x86_64_darwin_data")
x86_64_linux_version=$(jq -r .version <<< "$x86_64_linux_data")
aarch64_darwin_url=$(jq -r .download_url <<< "$aarch64_darwin_data")
x86_64_darwin_url=$(jq -r .download_url <<< "$x86_64_darwin_data")
x86_64_linux_url=$(jq -r .download_url <<< "$x86_64_linux_data")
aarch64_darwin_hash=$(nix-prefetch-url "$aarch64_darwin_url")
x86_64_darwin_hash=$(nix-prefetch-url "$x86_64_darwin_url")
x86_64_linux_hash=$(nix-prefetch-url "$x86_64_linux_url")
# use friendlier hashes
aarch64_darwin_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$aarch64_darwin_hash")
x86_64_darwin_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$x86_64_darwin_hash")
x86_64_linux_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$x86_64_linux_hash")
cat >sources.nix <<EOF
@@ -39,13 +34,6 @@ cat >sources.nix <<EOF
hash = "$aarch64_darwin_hash";
};
};
x86_64-darwin = {
version = "$x86_64_darwin_version";
src = fetchurl {
url = "$x86_64_darwin_url";
hash = "$x86_64_darwin_hash";
};
};
x86_64-linux = {
version = "$x86_64_linux_version";
src = fetchurl {

View File

@@ -1,17 +1,14 @@
# Generated by ./update.sh - do not update manually!
# Last updated: 2026-06-20
{ fetchurl }:
let
any-darwin = {
{
aarch64-darwin = {
version = "2.11.3";
src = fetchurl {
url = "https://download.snipaste.com/archives/Snipaste-2.11.3.dmg";
hash = "sha256-oih4OIieexc0pl2VK65e9/R5vcFj0MMb6RhZvKEg/T4=";
};
};
in
{
aarch64-darwin = any-darwin;
x86_64-linux = {
version = "2.11.3";
src = fetchurl {

View File

@@ -29,18 +29,14 @@ cat >sources.nix <<EOF
# Generated by ./update.sh - do not update manually!
# Last updated: $(date +%F)
{ fetchurl }:
let
any-darwin = {
{
aarch64-darwin = {
version = "$mac_version";
src = fetchurl {
url = "$mac_url";
hash = "$mac_hash";
};
};
in
{
aarch64-darwin = any-darwin;
x86_64-darwin = any-darwin;
x86_64-linux = {
version = "$linux_version";
src = fetchurl {

View File

@@ -13,21 +13,13 @@ stdenv.mkDerivation {
version = "1.2.92.147";
src =
# WARNING: This Wayback Machine URL redirects to the closest timestamp.
# Future maintainers must manually check the timestamp exists and exactly matches at:
# https://web.archive.org/web/*/https://download.scdn.co/SpotifyARM64.dmg
# https://web.archive.org/web/*/https://download.scdn.co/Spotify.dmg
if stdenv.hostPlatform.isAarch64 then
(fetchurl {
url = "https://web.archive.org/web/20260607203830/https://download.scdn.co/SpotifyARM64.dmg";
hash = "sha256-rQuvF7LWHBR3q8GJQWO671n1NRDKinQps+zYfXPktrU=";
})
else
(fetchurl {
url = "https://web.archive.org/web/20260607203705/https://download.scdn.co/Spotify.dmg";
hash = "sha256-jX7nBPiwxnKXWpN4/XiXKBl6Eg01954+VDwWRoJfdbk=";
});
# WARNING: This Wayback Machine URL redirects to the closest timestamp.
# Future maintainers must manually check the timestamp exists and exactly matches at:
# https://web.archive.org/web/*/https://download.scdn.co/SpotifyARM64.dmg
src = fetchurl {
url = "https://web.archive.org/web/20260607203830/https://download.scdn.co/SpotifyARM64.dmg";
hash = "sha256-rQuvF7LWHBR3q8GJQWO671n1NRDKinQps+zYfXPktrU=";
};
nativeBuildInputs = [ undmg ];

View File

@@ -83,7 +83,6 @@ update_macos() {
pushd $tmp_dir
x86_64_url="https://download.scdn.co/Spotify.dmg"
aarch64_url="https://download.scdn.co/SpotifyARM64.dmg"
curl -OL $aarch64_url
@@ -99,13 +98,8 @@ update_macos() {
if [[ "$current_nix_version" != "$upstream_version" ]]; then
archive_url="https://web.archive.org/save"
archived_x86_64_url=$(curl -s -I -L -o /dev/null "$archive_url/$x86_64_url" -w '%{url_effective}')
archived_aarch64_url=$(curl -s -I -L -o /dev/null "$archive_url/$aarch64_url" -w '%{url_effective}')
update-source-version "pkgsCross.x86_64-darwin.spotify" "$upstream_version" "" "$archived_x86_64_url" \
--file=$nix_file \
--ignore-same-version
update-source-version "pkgsCross.aarch64-darwin.spotify" "$upstream_version" "" "$archived_aarch64_url" \
--file=$nix_file \
--ignore-same-version

View File

@@ -43,5 +43,4 @@ updateVersion "$latestVersion"
updateHash "$latestVersion" x86_64-linux linux-amd64
updateHash "$latestVersion" aarch64-linux linux-arm64
updateHash "$latestVersion" x86_64-darwin darwin-amd64
updateHash "$latestVersion" aarch64-darwin darwin-arm64

View File

@@ -96,7 +96,6 @@ ffmpeg_url() {
declare -A ffmpeg_arch=(
[x86_64-linux]=Linux-x86_64
[aarch64-linux]=Linux-aarch64
[x86_64-darwin]=Darwin-x86_64
[aarch64-darwin]=Darwin-arm64
)

View File

@@ -19,7 +19,6 @@ echo "Updating swiftlint from $old_version to $version"
declare -A platforms=(
[x86_64-linux]="swiftlint_linux_amd64.zip"
[aarch64-linux]="swiftlint_linux_arm64.zip"
[x86_64-darwin]="portable_swiftlint.zip"
[aarch64-darwin]="portable_swiftlint.zip"
)

View File

@@ -13,7 +13,6 @@ function prefetch-sri() {
declare -A platforms=(
[x86_64-unknown-linux-musl]="x86_64-linux"
[x86_64-apple-darwin]="x86_64-darwin"
[aarch64-apple-darwin]="aarch64-darwin"
)

View File

@@ -27,5 +27,4 @@ function updatePlatform() {
updatePlatform aarch64-darwin macos-arm64
updatePlatform aarch64-linux linux-arm64
updatePlatform armv7l-linux linux-armv7
updatePlatform x86_64-darwin macos-x64
updatePlatform x86_64-linux linux-x64

View File

@@ -24,12 +24,10 @@ VER=$(list-git-tags --url=https://github.com/tailwindlabs/tailwindcss | rg 'v4[0
LINUX_X64_HASH=$(fetch_arch "$VER" "linux-x64")
LINUX_AARCH64_HASH=$(fetch_arch "$VER" "linux-arm64")
DARWIN_X64_HASH=$(fetch_arch "$VER" "macos-x64")
DARWIN_AARCH64_HASH=$(fetch_arch "$VER" "macos-arm64")
sed -i "s/version = \".*\"/version = \"$VER\"/" "$NIX_DRV"
replace_hash "x86_64-linux" "$LINUX_X64_HASH"
replace_hash "aarch64-linux" "$LINUX_AARCH64_HASH"
replace_hash "x86_64-darwin" "$DARWIN_X64_HASH"
replace_hash "aarch64-darwin" "$DARWIN_AARCH64_HASH"

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
'';

View File

@@ -18,11 +18,9 @@ setKV ./package.nix version $version
# Update desktop application
sha256_linux64=$(nix store prefetch-file --json --hash-type sha256 https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-v${version}-linux-x64.zip | jq -r .hash)
sha256_linux64_arm=$(nix store prefetch-file --json --hash-type sha256 https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-v${version}-linux-arm64.zip | jq -r .hash)
sha256_darwin64=$(nix store prefetch-file --json --hash-type sha256 https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-v${version}-macos-x64.zip | jq -r .hash)
sha256_darwin64_arm=$(nix store prefetch-file --json --hash-type sha256 https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-v${version}-macos-arm64.zip | jq -r .hash)
setKV ./package.nix x86_64-linux.hash $sha256_linux64
setKV ./package.nix aarch64-linux.hash $sha256_linux64_arm
setKV ./package.nix x86_64-darwin.hash $sha256_darwin64
setKV ./package.nix aarch64-darwin.hash $sha256_darwin64_arm
electronVersion=$(curl_github "https://raw.githubusercontent.com/TriliumNext/Trilium/v$version/apps/desktop/package.json" | jq -r ".devDependencies.electron" | sed -r 's|^\^?([0-9]+).*|\1|')
sed -r "s|(electron_)[0-9]+|\1$electronVersion|" -i ./package.nix

View File

@@ -16,7 +16,6 @@ fi
declare -A platforms=(
[aarch64-linux]="linux-arm64"
[aarch64-darwin]="darwin-arm64"
[x86_64-darwin]="darwin-amd64"
[x86_64-linux]="linux-amd64"
)

View File

@@ -28,7 +28,6 @@ sed -i "s/version = \"$current_version\";/version = \"$version\";/" package.nix
# Define platforms and their corresponding URL suffixes
declare -A platforms=(
["aarch64-darwin"]="ucm-macos-arm64.tar.gz"
["x86_64-darwin"]="ucm-macos-x64.tar.gz"
["aarch64-linux"]="ucm-linux-arm64.tar.gz"
["x86_64-linux"]="ucm-linux-x64.tar.gz"
)

View File

@@ -37,7 +37,6 @@
"platformList": [
"aarch64-darwin",
"aarch64-linux",
"x86_64-darwin",
"x86_64-linux"
],
"version": "0.41.0-0.rc.0.152.g4da0ccab"

View File

@@ -37,7 +37,6 @@
"platformList": [
"aarch64-darwin",
"aarch64-linux",
"x86_64-darwin",
"x86_64-linux"
],
"version": "0.40.3"

View File

@@ -65,7 +65,6 @@ main = do
-- Architecture mapping
let archMapping = Map.fromList
[ ("aarch64-darwin", "darwin_arm64")
, ("x86_64-darwin", "darwin_amd64")
, ("aarch64-linux", "linux_arm64")
, ("x86_64-linux", "linux_amd64")
]

View File

@@ -19,7 +19,6 @@ prefetch() {
LINUX_AARCH64_SHA256=$(prefetch "linux-aarch64")
LINUX_X64_SHA256=$(prefetch "linux-x86_64")
DARWIN_AARCH64_SHA256=$(prefetch "macos-aarch64")
DARWIN_X64_SHA256=$(prefetch "macos-x86_64")
sed -i "s/version = \".*\"/version = \"$VERSION\"/" "$NIX_DRV"
@@ -32,4 +31,3 @@ replace-sha256() {
replace-sha256 "aarch64-linux" "$LINUX_AARCH64_SHA256"
replace-sha256 "x86_64-linux" "$LINUX_X64_SHA256"
replace-sha256 "aarch64-darwin" "$DARWIN_AARCH64_SHA256"
replace-sha256 "x86_64-darwin" "$DARWIN_X64_SHA256"

View File

@@ -27,7 +27,6 @@ VAULT_VER=$(curl -Ls -w "%{url_effective}" -o /dev/null https://github.com/hashi
VAULT_LINUX_X86_SHA256=$(calc_hash "$VAULT_VER" "linux_386")
VAULT_LINUX_X64_SHA256=$(calc_hash "$VAULT_VER" "linux_amd64")
VAULT_DARWIN_X64_SHA256=$(calc_hash "$VAULT_VER" "darwin_amd64")
VAULT_LINUX_AARCH64_SHA256=$(calc_hash "$VAULT_VER" "linux_arm64")
VAULT_DARWIN_AARCH64_SHA256=$(calc_hash "$VAULT_VER" "darwin_arm64")
@@ -35,6 +34,5 @@ sed -i "s/version = \".*\"/version = \"$VAULT_VER\"/" "$NIX_DRV"
replace_sha "i686-linux" "$VAULT_LINUX_X86_SHA256"
replace_sha "x86_64-linux" "$VAULT_LINUX_X64_SHA256"
replace_sha "x86_64-darwin" "$VAULT_DARWIN_X64_SHA256"
replace_sha "aarch64-linux" "$VAULT_LINUX_AARCH64_SHA256"
replace_sha "aarch64-darwin" "$VAULT_DARWIN_AARCH64_SHA256"

View File

@@ -125,18 +125,10 @@ let
darwin = stdenv.mkDerivation {
inherit pname version passthru;
src =
let
arch = selectSystem {
aarch64-darwin = "arm64";
};
in
fetchurl {
url = "https://github.com/wavetermdev/waveterm/releases/download/v${version}/Wave-darwin-${arch}-${version}.zip";
hash = selectSystem {
aarch64-darwin = "sha256-NY/KFFGgtrQr9YL32nudWeTIGNDjswelcOD1wo+Jh3s=";
};
};
src = fetchurl {
url = "https://github.com/wavetermdev/waveterm/releases/download/v${version}/Wave-darwin-arm64-${version}.zip";
hash = "sha256-NY/KFFGgtrQr9YL32nudWeTIGNDjswelcOD1wo+Jh3s=";
};
nativeBuildInputs = [ unzip ];

View File

@@ -25,7 +25,6 @@ for i in \
done
for i in \
"x86_64-darwin x64" \
"aarch64-darwin arm64"; do
set -- $i
prefetch=$(nix-prefetch-url "https://github.com/wavetermdev/waveterm/releases/download/v$latestVersion/Wave-darwin-$2-$latestVersion.zip")

View File

@@ -17,18 +17,15 @@ linux_version=$(echo "$linux_payload" | grep -oP '(?<=banner_txt">)[^<]+')
darwin_version=$(echo "$darwin_payload" | grep -oP '(?<=\s)\d+(?:\.\d+)+(?=/)')
linux_amd64_url=$(echo "$linux_payload" | grep -oP "downLoad\('[^']*'" | head -1 | sed "s/downLoad('//;s/'$//")
darwin_amd64_url="https://package.mac.wpscdn.cn/mac_wps_pkg/${darwin_version}/WPS_Office_${darwin_version}(${darwin_version##*.})_x64.dmg"
darwin_arm64_url="https://package.mac.wpscdn.cn/mac_wps_pkg/${darwin_version}/WPS_Office_${darwin_version}(${darwin_version##*.})_arm64.dmg"
timestamp10=$(date '+%s')
linux_amd64_md5hash=($(printf '%s' "$SECURITY_KEY${linux_amd64_url#$prefix}$timestamp10" | md5sum))
linux_amd64_hash=$(nix-prefetch-url --name "wpsoffice-cn-$linux_version.deb" "$linux_amd64_url?t=$timestamp10&k=$linux_amd64_md5hash")
darwin_amd64_hash=$(nix-prefetch-url --name "wpsoffice-cn-$darwin_version.dmg" "$darwin_amd64_url")
darwin_arm64_hash=$(nix-prefetch-url --name "wpsoffice-cn-$darwin_version.dmg" "$darwin_arm64_url")
linux_amd64_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$linux_amd64_hash")
darwin_amd64_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$darwin_amd64_hash")
darwin_arm64_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$darwin_arm64_hash")
cat > sources.nix << EOF
@@ -41,10 +38,6 @@ cat > sources.nix << EOF
url = "$linux_amd64_url";
hash = "$linux_amd64_hash";
};
x86_64-darwin = {
url = "$darwin_amd64_url";
hash = "$darwin_amd64_hash";
};
aarch64-darwin = {
url = "$darwin_arm64_url";
hash = "$darwin_arm64_hash";

View File

@@ -14,7 +14,6 @@ systems = [
("aarch64", "darwin"),
("aarch64", "linux"),
("i686", "linux"),
("x86_64", "darwin"),
("x86_64", "linux"),
]

View File

@@ -55,7 +55,6 @@ let
# We write them on three lines like this (rather than using {}) so that the updater script can
# find where to edit them.
versions.aarch64-darwin = "7.1.0.83064";
versions.x86_64-darwin = "7.1.0.83064";
# This is the fallback version so that evaluation can produce a meaningful result.
versions.x86_64-linux = "7.1.0.3715";

View File

@@ -17,7 +17,6 @@ version_x86_64_linux=$(jq -r .zoom.version <<<"$linux_data")
echo >&2 "=== Updating package.nix ..."
# update-source-version expects to be at the root of nixpkgs
(cd "$nixpkgs" && update-source-version --ignore-same-version --print-changes --version-key=versions.aarch64-darwin pkgsCross.aarch64-darwin.zoom-us "$version_aarch64_darwin")
(cd "$nixpkgs" && update-source-version --ignore-same-version --print-changes --version-key=versions.x86_64-darwin pkgsCross.x86_64-darwin.zoom-us "$version_x86_64_darwin")
(cd "$nixpkgs" && update-source-version --ignore-same-version --print-changes --version-key=versions.x86_64-linux pkgsCross.gnu64.zoom-us "$version_x86_64_linux" --source-key=unpacked.src)
echo >&2 "=== Done!"

View File

@@ -21,7 +21,6 @@ let
systemPlatforms = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];

View File

@@ -9,7 +9,6 @@ let
{
x86_64-linux = "linux-x64";
aarch64-linux = "linux-arm64";
x86_64-darwin = "macos-x64";
aarch64-darwin = "macos-arm64";
}
."@platform@";

View File

@@ -153,7 +153,7 @@ def get_artifact_hashes(flutter_compact_version):
def get_dart_hashes(dart_version, channel):
platforms = ["x86_64-linux", "aarch64-linux", "x86_64-darwin", "aarch64-darwin"]
platforms = ["x86_64-linux", "aarch64-linux", "aarch64-darwin"]
result_dict = {}
for platform in platforms:
code = load_code(

View File

@@ -82,14 +82,12 @@ if [[ "$product" == "graalvm-ce" ]]; then
[aarch64-linux]="linux-aarch64"
[x86_64-linux]="linux-x64"
[aarch64-darwin]="macos-aarch64"
[x86_64-darwin]="macos-x64"
)
else
declare -r -A platforms=(
[aarch64-linux]="linux-aarch64"
[x86_64-linux]="linux-amd64"
[aarch64-darwin]="macos-aarch64"
[x86_64-darwin]="macos-amd64"
)
fi

View File

@@ -11,7 +11,6 @@ sed -i "s/version = \".*\"/version = \"$latest\"/" "$dir/default.nix"
for system_platform in \
"x86_64-linux|manylinux1_x86_64" \
"aarch64-linux|manylinux2014_aarch64" \
"x86_64-darwin|macosx_10_13_x86_64" \
"aarch64-darwin|macosx_11_0_arm64"
do
system="${system_platform%%|*}"

View File

@@ -105,7 +105,6 @@ update_core_platform() {
# update_core_platform <nix-system> <pypi-arch> <pypi-distro>
update_core_platform "x86_64-linux" "x86_64" "manylinux"
update_core_platform "aarch64-linux" "aarch64" "manylinux"
update_core_platform "x86_64-darwin" "x86_64" "macosx"
update_core_platform "aarch64-darwin" "arm64" "macosx"
OLD_PWD=$PWD

View File

@@ -47,7 +47,6 @@ systems = {
"x86_64-linux": "linux-x64",
"armv7l-linux": "linux-armv7l",
"aarch64-linux": "linux-arm64",
"x86_64-darwin": "darwin-x64",
"aarch64-darwin": "darwin-arm64",
}

View File

@@ -1,6 +1,5 @@
{ "_comment": "@generated by pkgs/development/tools/infisical/update.sh"
, "x86_64-linux": "sha256-/2fksPX6/hsz6hYGdn5iNah0LMR+avY0zf9UuNH8zAo="
, "aarch64-linux": "sha256-lrkyolCSgLQiet287Br0aGYCP/daaYzJAaqMvsqsbsw="
, "aarch64-darwin": "sha256-pw06koxiY9gYvDw0b6tRTMy3BGYS36mxV0q8TWEA7vM="
}

View File

@@ -15,7 +15,6 @@ echo "Latest infisical release: $VERSION"
ARCHS=(
"x86_64-linux:linux_amd64"
"x86_64-darwin:darwin_amd64"
"aarch64-linux:linux_arm64"
"aarch64-darwin:darwin_arm64"
)

View File

@@ -12,19 +12,6 @@ let
(lib.importJSON ../../../../applications/networking/browsers/chromium/info.json)
.chromium.chromedriver;
# See ./source.nix for Linux
allSpecs = {
aarch64-darwin = {
system = "mac-arm64";
hash = upstream-info.hash_darwin_aarch64;
};
};
spec =
allSpecs.${stdenv.hostPlatform.system}
or (throw "missing chromedriver binary for ${stdenv.hostPlatform.system}");
inherit (upstream-info) version;
in
stdenv.mkDerivation {
@@ -32,8 +19,8 @@ stdenv.mkDerivation {
inherit version;
src = fetchzip {
url = "https://storage.googleapis.com/chrome-for-testing-public/${version}/${spec.system}/chromedriver-${spec.system}.zip";
inherit (spec) hash;
url = "https://storage.googleapis.com/chrome-for-testing-public/${version}/mac-arm64/chromedriver-mac-arm64.zip";
hash = upstream-info.hash_darwin_aarch64;
};
nativeBuildInputs = [ unzip ];

View File

@@ -15,7 +15,6 @@ const browserNames = Object.keys(browserDownloads);
const hostPlatformBySystem = {
"x86_64-linux": "ubuntu24.04-x64",
"aarch64-linux": "ubuntu24.04-arm64",
"x86_64-darwin": "mac15",
"aarch64-darwin": "mac15-arm64",
};

View File

@@ -70,11 +70,7 @@ let
darwin = fetchzip {
inherit (download) url stripRoot;
hash =
{
aarch64-darwin = "sha256-qWrMOreqTOFhmFBROlXIPXrM3wqNT7iJJwpelVFke6I=";
}
.${system} or throwSystem;
hash = "sha256-qWrMOreqTOFhmFBROlXIPXrM3wqNT7iJJwpelVFke6I=";
};
in
{

View File

@@ -128,11 +128,7 @@ let
};
chromium-darwin = fetchzip {
inherit (download) url stripRoot;
hash =
{
aarch64-darwin = "sha256-aJbvZQ1hY0FfDC+ZktfW2yNW3nwc0kh/P30+n/cmLf0=";
}
.${system} or throwSystem;
hash = "sha256-aJbvZQ1hY0FfDC+ZktfW2yNW3nwc0kh/P30+n/cmLf0=";
};
in
{

View File

@@ -40,11 +40,7 @@ let
};
firefox-darwin = fetchzip {
inherit (download) url stripRoot;
hash =
{
aarch64-darwin = "sha256-Opwa5SbuAaXf2A+qrldHc6BkhRaOzzl0dy7R4vodG5w=";
}
.${system} or throwSystem;
hash = "sha256-Opwa5SbuAaXf2A+qrldHc6BkhRaOzzl0dy7R4vodG5w=";
};
in
{

View File

@@ -17,7 +17,7 @@ playwright_driver_file="$root/driver.nix"
playwright_raw_repo_url="https://raw.githubusercontent.com/microsoft/playwright"
playwright_mcp_package_file="$root/../../../by-name/pl/playwright-mcp/package.nix"
browser_names=(chromium chromium-headless-shell firefox webkit ffmpeg)
browser_systems=(x86_64-linux aarch64-linux x86_64-darwin aarch64-darwin)
browser_systems=(x86_64-linux aarch64-linux aarch64-darwin)
github_api_get() {
curl "${github_api_curl_args[@]}" -fsSL "$1"

View File

@@ -202,11 +202,7 @@ let
};
webkit-darwin = fetchzip {
inherit (download) url stripRoot;
hash =
{
aarch64-darwin = "sha256-glVkYnthOFBPp1gZXTue9WwjP+oCgQpq6j9Mlm/bjmg=";
}
.${system} or throwSystem;
hash = "sha256-glVkYnthOFBPp1gZXTue9WwjP+oCgQpq6j9Mlm/bjmg=";
};
in
{

View File

@@ -41,6 +41,5 @@ if echo "$api_response" | jq -e '.packages | select(length == 1) | .any' > /dev/
else
update "linux-amd64" "x86_64-linux"
update "linux-arm64" "aarch64-linux"
update "darwin-amd64" "x86_64-darwin"
update "darwin-arm64" "aarch64-darwin"
fi