wine: add option for smartcard support (#538746)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -57,6 +57,7 @@ lib.makeExtensible (
|
||||
gphoto2Support = true;
|
||||
krb5Support = true;
|
||||
embedInstallers = true;
|
||||
smartcardSupport = true;
|
||||
};
|
||||
|
||||
stable = self.base.override { wineRelease = "stable"; };
|
||||
|
||||
Reference in New Issue
Block a user