x2goclient: fix #163122 crash after connection

+36 -6
+36 -6
pkgs/applications/networking/remote/x2goclient/default.nix
··· 1 - { lib, fetchurl, cups, libssh, libXpm, nx-libs, openldap, openssh 2 - , mkDerivation, qtbase, qtsvg, qtx11extras, qttools, phonon, pkg-config }: 3 4 - mkDerivation rec { 5 pname = "x2goclient"; 6 version = "4.1.2.2"; 7 ··· 10 sha256 = "yZUyZ8QPpnEZrZanO6yx8mYZbaIFnwzc0bjVGZQh0So="; 11 }; 12 13 - buildInputs = [ cups libssh libXpm nx-libs openldap openssh 14 - qtbase qtsvg qtx11extras qttools phonon pkg-config ]; 15 16 postPatch = '' 17 substituteInPlace src/onmainwindow.cpp --replace "/usr/sbin/sshd" "${openssh}/bin/sshd" ··· 26 27 installTargets = [ "install_client" "install_man" ]; 28 29 - qtWrapperArgs = [ "--suffix PATH : ${nx-libs}/bin:${openssh}/libexec" ]; 30 31 meta = with lib; { 32 description = "Graphical NoMachine NX3 remote desktop client";
··· 1 + { lib 2 + , fetchurl 3 + , cups 4 + , libssh 5 + , libXpm 6 + , nx-libs 7 + , openldap 8 + , openssh 9 + , qt5 10 + , qtbase 11 + , qtsvg 12 + , qtx11extras 13 + , qttools 14 + , phonon 15 + , pkg-config 16 + }: 17 18 + qt5.mkDerivation rec { 19 pname = "x2goclient"; 20 version = "4.1.2.2"; 21 ··· 24 sha256 = "yZUyZ8QPpnEZrZanO6yx8mYZbaIFnwzc0bjVGZQh0So="; 25 }; 26 27 + buildInputs = [ 28 + cups 29 + libssh 30 + libXpm 31 + nx-libs 32 + openldap 33 + openssh 34 + qtbase 35 + qtsvg 36 + qtx11extras 37 + qttools 38 + phonon 39 + ]; 40 + 41 + nativeBuildInputs = [ 42 + pkg-config 43 + qt5.wrapQtAppsHook 44 + ]; 45 46 postPatch = '' 47 substituteInPlace src/onmainwindow.cpp --replace "/usr/sbin/sshd" "${openssh}/bin/sshd" ··· 56 57 installTargets = [ "install_client" "install_man" ]; 58 59 + qtWrapperArgs = [ "--suffix PATH : ${nx-libs}/bin:${openssh}/libexec" "--set QT_QPA_PLATFORM xcb" ]; 60 61 meta = with lib; { 62 description = "Graphical NoMachine NX3 remote desktop client";