@@ -10,6 +10,7 @@
1010, sdlSupport ? !stdenv.isDarwin, SDL2
1111, gtkSupport ? !stdenv.isDarwin && !xenSupport, gtk3, gettext, gnome3
1212, vncSupport ? true, libjpeg, libpng
13+, smartcardSupport ? true, libcacard
1314, spiceSupport ? !stdenv.isDarwin, spice, spice-protocol
1415, usbredirSupport ? spiceSupport, usbredir
1516, xenSupport ? false, xen
@@ -58,6 +59,7 @@ stdenv.mkDerivation rec {
5859 ++ optionals sdlSupport [ SDL2 ]
5960 ++ optionals gtkSupport [ gtk3 gettext gnome3.vte ]
6061 ++ optionals vncSupport [ libjpeg libpng ]
62+ ++ optionals smartcardSupport [ libcacard ]
6163 ++ optionals spiceSupport [ spice-protocol spice ]
6264 ++ optionals usbredirSupport [ usbredir ]
6365 ++ optionals stdenv.isLinux [ alsaLib libaio libcap_ng libcap attr ]
@@ -108,6 +110,7 @@ stdenv.mkDerivation rec {
108110 ++ optional stdenv.isDarwin "--cpu=x86_64"
109111 ++ optional numaSupport "--enable-numa"
110112 ++ optional seccompSupport "--enable-seccomp"
113+ ++ optional smartcardSupport "--enable-smartcard"
111114 ++ optional spiceSupport "--enable-spice"
112115 ++ optional usbredirSupport "--enable-usb-redir"
113116 ++ optional hostCpuOnly "--target-list=${hostCpuTargets}"