You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. { stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
  2. , withALSA ? true, alsaLib ? null
  3. , withPulseAudio ? false, libpulseaudio ? null
  4. , withPortAudio ? false, portaudio ? null
  5. }:
  6. rustPlatform.buildRustPackage rec {
  7. pname = "spotifyd";
  8. version = "0.2.18";
  9. src = fetchFromGitHub {
  10. owner = "Spotifyd";
  11. repo = "spotifyd";
  12. rev = "v${version}";
  13. sha256 = "12826b0wf31m9vw1s7bcd1hb4ygb1xn4sdknn1y9kzc68brsq94v";
  14. };
  15. cargoSha256 = "0ar4bfwn3qxa6wsz2hd7nv1wr824h74jy3xqba2qsy0rsfwy1bmm";
  16. cargoBuildFlags = [
  17. "--no-default-features"
  18. "--features"
  19. "${stdenv.lib.optionalString withALSA "alsa_backend,"}${stdenv.lib.optionalString withPulseAudio "pulseaudio_backend,"}${stdenv.lib.optionalString withPortAudio "portaudio_backend,"}"
  20. ];
  21. nativeBuildInputs = [ pkgconfig ];
  22. buildInputs = [ openssl ]
  23. ++ stdenv.lib.optional withALSA alsaLib
  24. ++ stdenv.lib.optional withPulseAudio libpulseaudio
  25. ++ stdenv.lib.optional withPortAudio portaudio;
  26. doCheck = false;
  27. meta = with stdenv.lib; {
  28. description = "An open source Spotify client running as a UNIX daemon";
  29. homepage = "https://github.com/Spotifyd/spotifyd";
  30. license = with licenses; [ gpl3 ];
  31. maintainers = [ maintainers.anderslundstedt ];
  32. platforms = platforms.unix;
  33. };
  34. }