mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
spotifyd: add withMpris and withKeyring optionals
This commit is contained in:
parent
3fe18a5b4e
commit
11be0cd745
@ -2,6 +2,9 @@
|
|||||||
, withALSA ? true, alsaLib ? null
|
, withALSA ? true, alsaLib ? null
|
||||||
, withPulseAudio ? false, libpulseaudio ? null
|
, withPulseAudio ? false, libpulseaudio ? null
|
||||||
, withPortAudio ? false, portaudio ? null
|
, withPortAudio ? false, portaudio ? null
|
||||||
|
, withMpris ? false
|
||||||
|
, withKeyring ? false
|
||||||
|
, dbus ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -20,7 +23,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
cargoBuildFlags = [
|
cargoBuildFlags = [
|
||||||
"--no-default-features"
|
"--no-default-features"
|
||||||
"--features"
|
"--features"
|
||||||
"${stdenv.lib.optionalString withALSA "alsa_backend,"}${stdenv.lib.optionalString withPulseAudio "pulseaudio_backend,"}${stdenv.lib.optionalString withPortAudio "portaudio_backend,"}"
|
"${stdenv.lib.optionalString withALSA "alsa_backend,"}${stdenv.lib.optionalString withPulseAudio "pulseaudio_backend,"}${stdenv.lib.optionalString withPortAudio "portaudio_backend,"}${stdenv.lib.optionalString withMpris "dbus_mpris,"}${stdenv.lib.optionalString withKeyring "dbus_keyring,"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
@ -28,7 +31,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ stdenv.lib.optional withALSA alsaLib
|
++ stdenv.lib.optional withALSA alsaLib
|
||||||
++ stdenv.lib.optional withPulseAudio libpulseaudio
|
++ stdenv.lib.optional withPulseAudio libpulseaudio
|
||||||
++ stdenv.lib.optional withPortAudio portaudio;
|
++ stdenv.lib.optional withPortAudio portaudio
|
||||||
|
++ stdenv.lib.optional (withMpris || withKeyring) dbus;
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user