From 6c47ba6fda41ad43b670be941b64c4092adb38f8 Mon Sep 17 00:00:00 2001 From: Yarny0 <41838844+Yarny0@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:25:16 +0200 Subject: [PATCH] tigervnc: fix a regression in VncAuth security type tigervnc v1.14.0 introduced a regression in its list of supported security types: Due to a missing comma in the code, the VncAuth security type (i.e. simple password check) isn't tried unless it is explicitely requested on the command line: https://github.com/TigerVNC/tigervnc/issues/1789 The commit at hand adds a patch from upstream (which will most likely be part of the next release) to fix this oversight. --- pkgs/tools/admin/tigervnc/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/admin/tigervnc/default.nix b/pkgs/tools/admin/tigervnc/default.nix index c54ce8bfe1425..0e6e1daa66e29 100644 --- a/pkgs/tools/admin/tigervnc/default.nix +++ b/pkgs/tools/admin/tigervnc/default.nix @@ -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=