spotify-player: 0.20.3 -> 0.20.4

This commit is contained in:
arminius-smh 2025-01-28 11:54:48 +01:00
parent 5cba040d6a
commit ab315b1b0c
No known key found for this signature in database

View File

@ -21,7 +21,6 @@
withDaemon ? true,
withAudioBackend ? "rodio", # alsa, pulseaudio, rodio, portaudio, jackaudio, rodiojack, sdl
withMediaControl ? true,
withLyrics ? true,
withImage ? true,
withNotify ? true,
withSixel ? true,
@ -47,17 +46,17 @@ assert lib.assertOneOf "withAudioBackend" withAudioBackend [
rustPlatform.buildRustPackage rec {
pname = "spotify-player";
version = "0.20.3";
version = "0.20.4";
src = fetchFromGitHub {
owner = "aome510";
repo = pname;
tag = "v${version}";
hash = "sha256-9iXsZod1aLdCQYUKBjdRayQfRUz770Xw3/M85Rp/OCw=";
hash = "sha256-5N/zTkNgcIk/Ml11Oo+jyoO0r2Hh9SxFL+tdhD/1X/4=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-LX4DuIIL9jGQLEzECydIdPEdPGdRTYREwFbMCS8CoNo=";
cargoHash = "sha256-0vIhAJ3u+PfujUGI07fddDs33P35Q4CSDz1sMuQwVws=";
nativeBuildInputs =
[
@ -100,13 +99,17 @@ rustPlatform.buildRustPackage rec {
++ lib.optionals (withAudioBackend != "") [ "${withAudioBackend}-backend" ]
++ lib.optionals withMediaControl [ "media-control" ]
++ lib.optionals withImage [ "image" ]
++ lib.optionals withLyrics [ "lyric-finder" ]
++ lib.optionals withDaemon [ "daemon" ]
++ lib.optionals withNotify [ "notify" ]
++ lib.optionals withStreaming [ "streaming" ]
++ lib.optionals withSixel [ "sixel" ]
++ lib.optionals withFuzzy [ "fzf" ];
# tries to access HOME only in aarch64-darwin environment when building mac-notification-sys
preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) ''
export HOME=$TMPDIR
'';
# sixel-sys is dynamically linked to libsixel
postInstall = lib.optionals (stdenv.hostPlatform.isDarwin && withSixel) ''
wrapProgram $out/bin/spotify_player \