about summary refs log tree commit diff
path: root/pkgs/applications/virtualization/qemu
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-10-12 18:58:49 +0000
committerYegor Timoshenko <yegortimoshenko@riseup.net>2018-10-12 20:38:55 +0000
commit475da25b40e91d1030d96559b596e42125e4c617 (patch)
treef123c22de0b09e2919bba45f80490acad9cd8bad /pkgs/applications/virtualization/qemu
parent1ae8d8b793406434b8bf1e348931bb1a41973515 (diff)
downloadnixlib-475da25b40e91d1030d96559b596e42125e4c617.tar
nixlib-475da25b40e91d1030d96559b596e42125e4c617.tar.gz
nixlib-475da25b40e91d1030d96559b596e42125e4c617.tar.bz2
nixlib-475da25b40e91d1030d96559b596e42125e4c617.tar.lz
nixlib-475da25b40e91d1030d96559b596e42125e4c617.tar.xz
nixlib-475da25b40e91d1030d96559b596e42125e4c617.tar.zst
nixlib-475da25b40e91d1030d96559b596e42125e4c617.zip
qemu: enable smartcard support
Diffstat (limited to 'pkgs/applications/virtualization/qemu')
-rw-r--r--pkgs/applications/virtualization/qemu/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix
index 596bc9dd9e09..d9495bd984ef 100644
--- a/pkgs/applications/virtualization/qemu/default.nix
+++ b/pkgs/applications/virtualization/qemu/default.nix
@@ -10,6 +10,7 @@
 , sdlSupport ? !stdenv.isDarwin, SDL2
 , gtkSupport ? !stdenv.isDarwin && !xenSupport, gtk3, gettext, gnome3
 , vncSupport ? true, libjpeg, libpng
+, smartcardSupport ? true, libcacard
 , spiceSupport ? !stdenv.isDarwin, spice, spice-protocol
 , usbredirSupport ? spiceSupport, usbredir
 , xenSupport ? false, xen
@@ -58,6 +59,7 @@ stdenv.mkDerivation rec {
     ++ optionals sdlSupport [ SDL2 ]
     ++ optionals gtkSupport [ gtk3 gettext gnome3.vte ]
     ++ optionals vncSupport [ libjpeg libpng ]
+    ++ optionals smartcardSupport [ libcacard ]
     ++ optionals spiceSupport [ spice-protocol spice ]
     ++ optionals usbredirSupport [ usbredir ]
     ++ optionals stdenv.isLinux [ alsaLib libaio libcap_ng libcap attr ]
@@ -108,6 +110,7 @@ stdenv.mkDerivation rec {
     ++ optional stdenv.isDarwin "--cpu=x86_64"
     ++ optional numaSupport "--enable-numa"
     ++ optional seccompSupport "--enable-seccomp"
+    ++ optional smartcardSupport "--enable-smartcard"
     ++ optional spiceSupport "--enable-spice"
     ++ optional usbredirSupport "--enable-usb-redir"
     ++ optional hostCpuOnly "--target-list=${hostCpuTargets}"