tigervnc: fix VncAuth security type (#349848)

This commit is contained in:
7c6f434c
2024-10-20 10:17:42 +00:00
committed by GitHub
+9
View File
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, xorg
, xkeyboard_config
, zlib
@@ -33,6 +34,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-TgVV/4MRsQHYKpDf9L5eHMLVpdwvNy1KPDIe7xMlQ9o=";
};
patches = [
(fetchpatch {
name = "vncauth-security-type.patch";
url = "https://github.com/TigerVNC/tigervnc/commit/4f6a3521874da5a67fd746389cfa9b6199eb3582.diff";
hash = "sha256-lSkR8e+jsBwkQUJZmA0tb8nM5iSbYtO8uVXtgk5wdF8=";
})
];
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
sed -i -e '/^\$cmd \.= " -pn";/a$cmd .= " -xkbdir ${xkeyboard_config}/etc/X11/xkb";' unix/vncserver/vncserver.in
fontPath=