wine: add option for smartcard support

Signed-off-by: David Wronek <david.wronek@mainlining.org>
This commit is contained in:
David Wronek 2026-07-03 22:09:03 +02:00
commit 66b694f83e
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -57,6 +57,7 @@ lib.makeExtensible (
gphoto2Support = true;
krb5Support = true;
embedInstallers = true;
smartcardSupport = true;
};
stable = self.base.override { wineRelease = "stable"; };