spotify-player: 0.20.3 -> 0.20.4
This commit is contained in:
parent
5cba040d6a
commit
ab315b1b0c
@ -21,7 +21,6 @@
|
|||||||
withDaemon ? true,
|
withDaemon ? true,
|
||||||
withAudioBackend ? "rodio", # alsa, pulseaudio, rodio, portaudio, jackaudio, rodiojack, sdl
|
withAudioBackend ? "rodio", # alsa, pulseaudio, rodio, portaudio, jackaudio, rodiojack, sdl
|
||||||
withMediaControl ? true,
|
withMediaControl ? true,
|
||||||
withLyrics ? true,
|
|
||||||
withImage ? true,
|
withImage ? true,
|
||||||
withNotify ? true,
|
withNotify ? true,
|
||||||
withSixel ? true,
|
withSixel ? true,
|
||||||
@ -47,17 +46,17 @@ assert lib.assertOneOf "withAudioBackend" withAudioBackend [
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "spotify-player";
|
pname = "spotify-player";
|
||||||
version = "0.20.3";
|
version = "0.20.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aome510";
|
owner = "aome510";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-9iXsZod1aLdCQYUKBjdRayQfRUz770Xw3/M85Rp/OCw=";
|
hash = "sha256-5N/zTkNgcIk/Ml11Oo+jyoO0r2Hh9SxFL+tdhD/1X/4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-LX4DuIIL9jGQLEzECydIdPEdPGdRTYREwFbMCS8CoNo=";
|
cargoHash = "sha256-0vIhAJ3u+PfujUGI07fddDs33P35Q4CSDz1sMuQwVws=";
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[
|
[
|
||||||
@ -100,13 +99,17 @@ rustPlatform.buildRustPackage rec {
|
|||||||
++ lib.optionals (withAudioBackend != "") [ "${withAudioBackend}-backend" ]
|
++ lib.optionals (withAudioBackend != "") [ "${withAudioBackend}-backend" ]
|
||||||
++ lib.optionals withMediaControl [ "media-control" ]
|
++ lib.optionals withMediaControl [ "media-control" ]
|
||||||
++ lib.optionals withImage [ "image" ]
|
++ lib.optionals withImage [ "image" ]
|
||||||
++ lib.optionals withLyrics [ "lyric-finder" ]
|
|
||||||
++ lib.optionals withDaemon [ "daemon" ]
|
++ lib.optionals withDaemon [ "daemon" ]
|
||||||
++ lib.optionals withNotify [ "notify" ]
|
++ lib.optionals withNotify [ "notify" ]
|
||||||
++ lib.optionals withStreaming [ "streaming" ]
|
++ lib.optionals withStreaming [ "streaming" ]
|
||||||
++ lib.optionals withSixel [ "sixel" ]
|
++ lib.optionals withSixel [ "sixel" ]
|
||||||
++ lib.optionals withFuzzy [ "fzf" ];
|
++ 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
|
# sixel-sys is dynamically linked to libsixel
|
||||||
postInstall = lib.optionals (stdenv.hostPlatform.isDarwin && withSixel) ''
|
postInstall = lib.optionals (stdenv.hostPlatform.isDarwin && withSixel) ''
|
||||||
wrapProgram $out/bin/spotify_player \
|
wrapProgram $out/bin/spotify_player \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user