aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-12-06 10:53:22 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-12-06 11:00:42 +0100
commit7e5c64df85b146248b3900f51010cd4c5e431b9f (patch)
tree57af4a6044efd40459f2247fc0c9dae24a9bce52
parentcf7475d2061ac3ada4b226571a4a1bb91420b578 (diff)
spotifyd: workaround panic with older rust version
rust >= 1.48 causes a panic within spotifyd on music playback. As long as there is no upstream fix for the issue we use an older version of rust. Upstream issue: https://github.com/Spotifyd/spotifyd/issues/719
-rw-r--r--pkgs/applications/audio/spotifyd/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/audio/spotifyd/default.nix b/pkgs/applications/audio/spotifyd/default.nix
index dcb5737afa6a..c4e1695f0835 100644
--- a/pkgs/applications/audio/spotifyd/default.nix
+++ b/pkgs/applications/audio/spotifyd/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
+{ stdenv, fetchFromGitHub, rustPackages_1_45, pkgconfig, openssl
, withALSA ? true, alsaLib ? null
, withPulseAudio ? false, libpulseaudio ? null
, withPortAudio ? false, portaudio ? null
@@ -7,7 +7,10 @@
, dbus ? null
}:
-rustPlatform.buildRustPackage rec {
+# rust >= 1.48 causes a panic within spotifyd on music playback. as long as
+# there is no upstream fix for the issue we use an older version of rust.
+# Upstream issue: https://github.com/Spotifyd/spotifyd/issues/719
+rustPackages_1_45.rustPlatform.buildRustPackage rec {
pname = "spotifyd";
version = "0.2.24";