From 1e36c703b14366c0f4cabfd60d2f9884f330a812 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Tue, 4 Apr 2023 11:06:26 +0900 Subject: [PATCH] spotify: 1.1.84.716.gc5f8b819 -> 1.1.99.878.g1e4ccc6e --- pkgs/applications/audio/spotify/default.nix | 8 ++++---- pkgs/applications/audio/spotify/update.sh | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/audio/spotify/default.nix b/pkgs/applications/audio/spotify/default.nix index a0a17a93e1fa..94099abf53f6 100644 --- a/pkgs/applications/audio/spotify/default.nix +++ b/pkgs/applications/audio/spotify/default.nix @@ -13,14 +13,14 @@ let # If an update breaks things, one of those might have valuable info: # https://aur.archlinux.org/packages/spotify/ # https://community.spotify.com/t5/Desktop-Linux - version = "1.1.84.716.gc5f8b819"; + version = "1.1.99.878.g1e4ccc6e"; # To get the latest stable revision: # curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/spotify?channel=stable' | jq '.download_url,.version,.last_updated' # To get general information: # curl -H 'Snap-Device-Series: 16' 'https://api.snapcraft.io/v2/snaps/info/spotify' | jq '.' # More examples of api usage: # https://github.com/canonical-websites/snapcraft.io/blob/master/webapp/publisher/snaps/views.py - rev = "60"; + rev = "62"; deps = [ alsa-lib @@ -75,7 +75,7 @@ stdenv.mkDerivation { # fetch from snapcraft instead of the debian repository most repos fetch from. # That is a bit more cumbersome. But the debian repository only keeps the last - # two versions, while snapcraft should provide versions indefinately: + # two versions, while snapcraft should provide versions indefinitely: # https://forum.snapcraft.io/t/how-can-a-developer-remove-her-his-app-from-snap-store/512 # This is the next-best thing, since we're not allowed to re-distribute @@ -83,7 +83,7 @@ stdenv.mkDerivation { # https://community.spotify.com/t5/Desktop-Linux/Redistribute-Spotify-on-Linux-Distributions/td-p/1695334 src = fetchurl { url = "https://api.snapcraft.io/api/v1/snaps/download/pOBIoZ2LrCB3rDohMxoYGnbN14EHOgD7_${rev}.snap"; - sha512 = "1209b956822d8bb661daa2c88616bed403ec26dc22c6b866cecff59235c56112284c2f99aa06352fc0df6fcd15225a6ad60afd3b4ff4d7b948ab83e70ab31a71"; + sha512 = "339r2q13nnpwi7gjd1axc6z2gycfm9gwz3x9dnqyaqd1g3rw7nk6nfbp6bmpkr68lfq1jfgvqwnimcgs84rsi7nmgsiabv3cz0673wv"; }; nativeBuildInputs = [ makeWrapper wrapGAppsHook squashfsTools ]; diff --git a/pkgs/applications/audio/spotify/update.sh b/pkgs/applications/audio/spotify/update.sh index a8836214f2fc..0f19b1e295af 100755 --- a/pkgs/applications/audio/spotify/update.sh +++ b/pkgs/applications/audio/spotify/update.sh @@ -78,6 +78,7 @@ sed --regexp-extended \ # try to build the updated version # +export NIXPKGS_ALLOW_UNFREE=1 if ! nix-build -A spotify "$nixpkgs"; then echo "The updated spotify failed to build." exit 1