|
24 | 24 |
|
25 | 25 | # General modifications to existing packages |
26 | 26 | 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 | + }); |
27 | 37 | # Fix dolphin-emu-primehack CMake compatibility issues (stable version only) |
28 | 38 | # Unstable has mbedtls library conflicts, so we use stable |
| 39 | + # FIXME: I need this in unstable, stable has broken old pkgs I dont want |
29 | 40 | dolphin-emu-primehack = final.stable.dolphin-emu-primehack.overrideAttrs (oldAttrs: { |
30 | 41 | postPatch = (oldAttrs.postPatch or "") + '' |
31 | 42 | # Fix CMake minimum version in all vendored dependencies |
|
59 | 70 | # Stable channel packages |
60 | 71 | stable-packages = final: _prev: { |
61 | 72 | stable = import inputs.nixpkgs-stable { |
62 | | - inherit (final) system; |
| 73 | + system = final.stdenv.hostPlatform.system; |
63 | 74 | config.allowUnfree = true; |
64 | 75 | }; |
65 | 76 | }; |
66 | 77 |
|
67 | 78 | # Unstable channel packages |
68 | 79 | unstable-packages = final: _prev: { |
69 | 80 | unstable = import inputs.nixpkgs-unstable { |
70 | | - inherit (final) system; |
| 81 | + system = final.stdenv.hostPlatform.system; |
71 | 82 | config.allowUnfree = true; |
72 | 83 | }; |
73 | 84 | }; |
|
0 commit comments