ncspot: enable MPRIS by default

This commit is contained in:
tilpner 2020-03-14 09:39:00 +01:00 committed by Mario Rodas
parent 318f05f776
commit 87c0ebda05
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027
2 changed files with 6 additions and 2 deletions

View File

@ -2,13 +2,15 @@
, withALSA ? true, alsaLib ? null
, withPulseAudio ? false, libpulseaudio ? null
, withPortAudio ? false, portaudio ? null
, withMPRIS ? false, dbus ? null
}:
let
features = [ "cursive/pancurses-backend" ]
++ lib.optional withALSA "alsa_backend"
++ lib.optional withPulseAudio "pulseaudio_backend"
++ lib.optional withPortAudio "portaudio_backend";
++ lib.optional withPortAudio "portaudio_backend"
++ lib.optional withMPRIS "mpris";
in
rustPlatform.buildRustPackage rec {
pname = "ncspot";
@ -30,7 +32,8 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ ncurses openssl ]
++ lib.optional withALSA alsaLib
++ lib.optional withPulseAudio libpulseaudio
++ lib.optional withPortAudio portaudio;
++ lib.optional withPortAudio portaudio
++ lib.optional withMPRIS dbus;
doCheck = false;

View File

@ -21013,6 +21013,7 @@ in
withALSA = stdenv.isLinux;
withPulseAudio = config.pulseaudio or stdenv.isLinux;
withPortAudio = stdenv.isDarwin;
withMPRIS = stdenv.isLinux;
};
ncview = callPackage ../tools/X11/ncview { } ;