1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/audio/spotifyd/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2019-07-20 18:38:53 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
, withALSA ? true, alsaLib ? null
, withPulseAudio ? false, libpulseaudio ? null
, withPortAudio ? false, portaudio ? null
}:
rustPlatform.buildRustPackage rec {
pname = "spotifyd";
2020-01-13 20:02:46 +00:00
version = "0.2.23";
2019-07-20 18:38:53 +01:00
src = fetchFromGitHub {
owner = "Spotifyd";
repo = "spotifyd";
2019-09-21 08:00:00 +01:00
rev = "v${version}";
2020-01-13 20:02:46 +00:00
sha256 = "0xxr21avgr4pvlr5vgb68jmad5xy5kqvaxfzh0qn1jpiax7y3avm";
2019-07-20 18:38:53 +01:00
};
2020-01-13 20:02:46 +00:00
cargoSha256 = "1ykmn7zzwn9my96bbxwkparab5lck1zzdkpafil2mmrjyvyi40da";
2019-07-20 18:38:53 +01: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 08:00:00 +01:00
doCheck = false;
2019-07-20 18:38:53 +01: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-11-24 18:05:06 +00:00
maintainers = with maintainers; [ anderslundstedt filalex77 marsam ];
2019-07-20 18:38:53 +01:00
platforms = platforms.unix;
};
}