Skip to content

Commit 5bb451c

Browse files
committed
fix: update Spotify to latest version
1 parent 2f7c98f commit 5bb451c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

modules/flake/overlays.nix

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,19 @@ let
2424

2525
# General modifications to existing packages
2626
modifications = final: prev: {
27+
# Update Spotify to latest version (upstream is outdated)
28+
# Check for updates: curl -s -H 'X-Ubuntu-Series: 16' "https://api.snapcraft.io/api/v1/snaps/details/spotify?channel=stable" | jq '.revision,.download_sha512,.version'
29+
spotify = prev.spotify.overrideAttrs (old: rec {
30+
version = "1.2.74.477.g3be53afe";
31+
rev = "89";
32+
src = prev.fetchurl {
33+
url = "https://api.snapcraft.io/api/v1/snaps/download/pOBIoZ2LrCB3rDohMxoYGnbN14EHOgD7_${rev}.snap";
34+
hash = "sha512-mn1w/Ylt9weFgV67tB435CoF2/4V+F6gu1LUXY07J6m5nxi1PCewHNFm8/11qBRO/i7mpMwhcRXaiv0HkFAjYA==";
35+
};
36+
});
2737
# Fix dolphin-emu-primehack CMake compatibility issues (stable version only)
2838
# Unstable has mbedtls library conflicts, so we use stable
39+
# FIXME: I need this in unstable, stable has broken old pkgs I dont want
2940
dolphin-emu-primehack = final.stable.dolphin-emu-primehack.overrideAttrs (oldAttrs: {
3041
postPatch = (oldAttrs.postPatch or "") + ''
3142
# Fix CMake minimum version in all vendored dependencies
@@ -59,15 +70,15 @@ let
5970
# Stable channel packages
6071
stable-packages = final: _prev: {
6172
stable = import inputs.nixpkgs-stable {
62-
inherit (final) system;
73+
system = final.stdenv.hostPlatform.system;
6374
config.allowUnfree = true;
6475
};
6576
};
6677

6778
# Unstable channel packages
6879
unstable-packages = final: _prev: {
6980
unstable = import inputs.nixpkgs-unstable {
70-
inherit (final) system;
81+
system = final.stdenv.hostPlatform.system;
7182
config.allowUnfree = true;
7283
};
7384
};

0 commit comments

Comments
 (0)