Unverified Commit 0fb03d34 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

spotify-player: 0.20.3 -> 0.20.4 (#377530)

parents 66aea4c4 ab315b1b
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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 \