From 7e5c64df85b146248b3900f51010cd4c5e431b9f Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sun, 6 Dec 2020 10:53:22 +0100 Subject: [PATCH] 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 --- pkgs/applications/audio/spotifyd/default.nix | 7 +++++-- 1 file 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";