diff --git a/pkgs/applications/emulators/wine/base.nix b/pkgs/applications/emulators/wine/base.nix index bee9d7c4af85..465fc428cfd6 100644 --- a/pkgs/applications/emulators/wine/base.nix +++ b/pkgs/applications/emulators/wine/base.nix @@ -64,6 +64,7 @@ x11Support ? false, ffmpegSupport ? false, embedInstallers ? false, + smartcardSupport ? false, }: let @@ -251,6 +252,9 @@ stdenv.mkDerivation ( ++ lib.optionals ffmpegSupport [ pkgs.ffmpeg-headless ] + ++ lib.optionals smartcardSupport [ + pkgs.pcsclite + ] ); inherit patches; @@ -275,7 +279,8 @@ stdenv.mkDerivation ( ++ lib.optionals vulkanSupport [ "--with-vulkan" ] ++ lib.optionals ((stdenv.hostPlatform.isDarwin && !xineramaSupport) || !x11Support) [ "--without-x" - ]; + ] + ++ lib.optionals smartcardSupport [ "--with-pcsclite" ]; # Wine locates a lot of libraries dynamically through dlopen(). Add # them to the RPATH so that the user doesn't have to set them in diff --git a/pkgs/applications/emulators/wine/default.nix b/pkgs/applications/emulators/wine/default.nix index 9c5d918bf057..07ee1ec83771 100644 --- a/pkgs/applications/emulators/wine/default.nix +++ b/pkgs/applications/emulators/wine/default.nix @@ -51,6 +51,7 @@ args@{ ffmpegSupport ? false, embedInstallers ? false, # The Mono and Gecko MSI installers moltenvk, # Allow users to override MoltenVK easily + smartcardSupport ? false, }: let diff --git a/pkgs/top-level/wine-packages.nix b/pkgs/top-level/wine-packages.nix index 93d3ac17ae1b..4c47e4443850 100644 --- a/pkgs/top-level/wine-packages.nix +++ b/pkgs/top-level/wine-packages.nix @@ -57,6 +57,7 @@ lib.makeExtensible ( gphoto2Support = true; krb5Support = true; embedInstallers = true; + smartcardSupport = true; }; stable = self.base.override { wineRelease = "stable"; };