Merge pull request #82558 from tilpner/ncspot-mpris
ncspot: enable MPRIS by default
This commit is contained in:
commit
aa8bd52698
@ -2,13 +2,15 @@
|
|||||||
, 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, dbus ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
features = [ "cursive/pancurses-backend" ]
|
features = [ "cursive/pancurses-backend" ]
|
||||||
++ lib.optional withALSA "alsa_backend"
|
++ lib.optional withALSA "alsa_backend"
|
||||||
++ lib.optional withPulseAudio "pulseaudio_backend"
|
++ lib.optional withPulseAudio "pulseaudio_backend"
|
||||||
++ lib.optional withPortAudio "portaudio_backend";
|
++ lib.optional withPortAudio "portaudio_backend"
|
||||||
|
++ lib.optional withMPRIS "mpris";
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "ncspot";
|
pname = "ncspot";
|
||||||
@ -30,7 +32,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
buildInputs = [ ncurses openssl ]
|
buildInputs = [ ncurses openssl ]
|
||||||
++ lib.optional withALSA alsaLib
|
++ lib.optional withALSA alsaLib
|
||||||
++ lib.optional withPulseAudio libpulseaudio
|
++ lib.optional withPulseAudio libpulseaudio
|
||||||
++ lib.optional withPortAudio portaudio;
|
++ lib.optional withPortAudio portaudio
|
||||||
|
++ lib.optional withMPRIS dbus;
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -21013,6 +21013,7 @@ in
|
|||||||
withALSA = stdenv.isLinux;
|
withALSA = stdenv.isLinux;
|
||||||
withPulseAudio = config.pulseaudio or stdenv.isLinux;
|
withPulseAudio = config.pulseaudio or stdenv.isLinux;
|
||||||
withPortAudio = stdenv.isDarwin;
|
withPortAudio = stdenv.isDarwin;
|
||||||
|
withMPRIS = stdenv.isLinux;
|
||||||
};
|
};
|
||||||
|
|
||||||
ncview = callPackage ../tools/X11/ncview { } ;
|
ncview = callPackage ../tools/X11/ncview { } ;
|
||||||
|
Loading…
Reference in New Issue
Block a user