New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] spotify: 1.0.96.181.gf6bc1b6b-12 -> 1.1.5.153.gf614956d-16 #57800
Conversation
This reverts commit ea87db2. See NixOS#57800
1.1.5 is out (I feel like they use dice to determine their version numbers). Unfortunately it doesn't fix the issue. There is a workaround using pulseaudio emulation for alsa which we may want to adapt if this remains unfixed much longer. |
I can't believe this is still broken 😢 |
Maybe we could use the same workaround as Gentoo? https://gitweb.gentoo.org/repo/gentoo.git/commit/media-sound/spotify?id=d8c8d8abd012c709551cc96802d2615fa69b5212 |
Probably! I've seen that too, but since I don't particularly miss any new features in the spotify client (its pretty bad, but I doubt it'll get better in the ways I want it to get better) I wasn't motivated enough to try it. If it works, feel free to do it :) Since you seem pretty interested in the spotify package, maybe even add yourself as a maintainer (no obligation to do so of course). |
With
I don't know a thing about ALSA/PulseAudio or sound servers in general, so I admit I have no idea what I'm doing 🙂 |
I got it working by exporting |
I created a new PR since there is a newer version available. |
See NixOS#57800 and NixOS#65081 for discussion around fixing the SIGSEV since 1.1.5 Fix taken from https://gitweb.gentoo.org/repo/gentoo.git/commit/media-sound/spotify?id=d8c8d8abd012c709551cc96802d2615fa69b5212: Adding apulse libraries to LD_LIBRARY_PATH make spotify work even if pulseaudio is not installed. If pulseaudio is installed instead of apulse, this has no effect. Adding APULSE_PLAYBACK_DEVICE is also necessary otherwise apulse does not find the device (inspired by the tor-browser-bundle derivation)
Motivation for this change
Currently the updated spotify will segfault once you try to play anything. I'm opening this PR so that others know why spotify is outdated and do not try to update it themselves. Upstream links:
https://community.spotify.com/t5/Desktop-Linux/spotify-client-1-1-0-98-78-gb45d2a6b-10-from-Ubuntu-package/td-p/4675676
https://community.spotify.com/t5/Desktop-Linux/1-0-98-1-1-0-Crash-when-using-ALSA/td-p/4680398
Unfortunately spotify on linux is still not officially supported, so who knows when there will be a fix.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)