wine: add option for smartcard support (#538746)

This commit is contained in:
7c6f434c
2026-07-06 04:57:13 +00:00
committed by GitHub
3 changed files with 8 additions and 1 deletions
+6 -1
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
@@ -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
+1
View File
@@ -57,6 +57,7 @@ lib.makeExtensible (
gphoto2Support = true;
krb5Support = true;
embedInstallers = true;
smartcardSupport = true;
};
stable = self.base.override { wineRelease = "stable"; };