mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
conky: provide option to build with pulseaudio support
This commit is contained in:
parent
aa878c2d15
commit
d0a9dcb01d
@ -27,6 +27,7 @@
|
||||
|
||||
, wirelessSupport ? true , wirelesstools ? null
|
||||
, nvidiaSupport ? false , libXNVCtrl ? null
|
||||
, pulseSupport ? false , libpulseaudio ? null
|
||||
|
||||
, curlSupport ? true , curl ? null
|
||||
, rssSupport ? curlSupport
|
||||
@ -54,6 +55,7 @@ assert luaCairoSupport || luaImlib2Support
|
||||
|
||||
assert wirelessSupport -> wirelesstools != null;
|
||||
assert nvidiaSupport -> libXNVCtrl != null;
|
||||
assert pulseSupport -> libpulseaudio != null;
|
||||
|
||||
assert curlSupport -> curl != null;
|
||||
assert rssSupport -> curlSupport && libxml2 != null;
|
||||
@ -100,6 +102,7 @@ stdenv.mkDerivation rec {
|
||||
++ optional rssSupport libxml2
|
||||
++ optional weatherXoapSupport libxml2
|
||||
++ optional nvidiaSupport libXNVCtrl
|
||||
++ optional pulseSupport libpulseaudio
|
||||
;
|
||||
|
||||
cmakeFlags = []
|
||||
@ -119,6 +122,7 @@ stdenv.mkDerivation rec {
|
||||
++ optional weatherXoapSupport "-DBUILD_WEATHER_XOAP=ON"
|
||||
++ optional wirelessSupport "-DBUILD_WLAN=ON"
|
||||
++ optional nvidiaSupport "-DBUILD_NVIDIA=ON"
|
||||
++ optional pulseSupport "-DBUILD_PULSEAUDIO=ON"
|
||||
;
|
||||
|
||||
# `make -f src/CMakeFiles/conky.dir/build.make src/CMakeFiles/conky.dir/conky.cc.o`:
|
||||
|
@ -12928,6 +12928,7 @@ with pkgs;
|
||||
conky = callPackage ../os-specific/linux/conky ({
|
||||
lua = lua5_1; # conky can use 5.2, but toluapp can not
|
||||
libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl;
|
||||
pulseSupport = config.pulseaudio or false;
|
||||
} // config.conky or {});
|
||||
|
||||
conntrack_tools = callPackage ../os-specific/linux/conntrack-tools { };
|
||||
|
Loading…
Reference in New Issue
Block a user