From bf47b711da79d76fed5697aae52cefd39686fe9d Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 18 Feb 2026 07:01:57 +0000 Subject: [PATCH] spotify: drop `x86_64-darwin` from update script --- pkgs/by-name/sp/spotify/darwin.nix | 22 +++++++--------------- pkgs/by-name/sp/spotify/update.sh | 6 ------ 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/sp/spotify/darwin.nix b/pkgs/by-name/sp/spotify/darwin.nix index dd5f6f64c675..b4ecae09c949 100644 --- a/pkgs/by-name/sp/spotify/darwin.nix +++ b/pkgs/by-name/sp/spotify/darwin.nix @@ -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 ]; diff --git a/pkgs/by-name/sp/spotify/update.sh b/pkgs/by-name/sp/spotify/update.sh index 65f986f5668a..a05690ceedc4 100755 --- a/pkgs/by-name/sp/spotify/update.sh +++ b/pkgs/by-name/sp/spotify/update.sh @@ -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