nixpkgs/pkgs/applications/audio/spotifyd/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2019-07-20 19:38:53 +02:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
, withALSA ? true, alsaLib ? null
, withPulseAudio ? false, libpulseaudio ? null
, withPortAudio ? false, portaudio ? null
}:
rustPlatform.buildRustPackage rec {
pname = "spotifyd";
2019-10-08 03:40:21 +02:00
version = "0.2.19";
2019-07-20 19:38:53 +02:00
src = fetchFromGitHub {
owner = "Spotifyd";
repo = "spotifyd";
2019-09-21 09:00:00 +02:00
rev = "v${version}";
2019-10-08 03:40:21 +02:00
sha256 = "063b28ysj224m6ngns9i574i7vnp1x4g07cqjw908ch04yngcg1c";
2019-07-20 19:38:53 +02:00
};
2019-10-08 03:40:21 +02:00
cargoSha256 = "0pqxqd5dyw9mjclrqkxzfnzsz74xl4bg0b86v5q6kc0a91zd49b9";
2019-07-20 19:38:53 +02:00
cargoBuildFlags = [
"--no-default-features"
"--features"
"${stdenv.lib.optionalString withALSA "alsa_backend,"}${stdenv.lib.optionalString withPulseAudio "pulseaudio_backend,"}${stdenv.lib.optionalString withPortAudio "portaudio_backend,"}"
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ]
++ stdenv.lib.optional withALSA alsaLib
++ stdenv.lib.optional withPulseAudio libpulseaudio
++ stdenv.lib.optional withPortAudio portaudio;
2019-09-21 09:00:00 +02:00
doCheck = false;
2019-07-20 19:38:53 +02:00
meta = with stdenv.lib; {
description = "An open source Spotify client running as a UNIX daemon";
homepage = "https://github.com/Spotifyd/spotifyd";
license = with licenses; [ gpl3 ];
2019-10-08 03:41:13 +02:00
maintainers = [ maintainers.anderslundstedt maintainers.marsam ];
2019-07-20 19:38:53 +02:00
platforms = platforms.unix;
};
}