mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 06:31:15 +00:00
spotify: drop x86_64-darwin from update script
This commit is contained in:
@@ -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 ];
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user