git.iko.soy/typeable/nixpkgs
on master help sign in
x2goclient: fix startup

Fixes the following error: ``` qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. ``` See also #54484 and others.

commit289c607cf5d6f5e1eac8bf9c13abc2b74197e149 authorAverell Dalton <averell+nixpkgs@rxd4.com> dateWed 24 Jul 2019, 13:33 (7 years ago) parent3034859
1 file changed+4−6
pkgs/applications/networking/remote/x2goclient/default.nix+4−6
pkgs/applications/networking/remote/x2goclient/default.nix+4−6
@@ -1,7 +1,7 @@
11{ stdenv, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
2−, makeWrapper, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
2+, mkDerivation, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
33
4−stdenv.mkDerivation rec {
4+mkDerivation rec {
55 pname = "x2goclient";
66 version = "unstable-2019-07-24";
77
@@ -13,7 +13,6 @@ stdenv.mkDerivation rec {
1313
1414 buildInputs = [ cups libssh libXpm nx-libs openldap openssh
1515 qtbase qtsvg qtx11extras qttools phonon pkgconfig ];
16− nativeBuildInputs = [ makeWrapper ];
1716
1817 postPatch = ''
1918 substituteInPlace Makefile \
@@ -28,9 +27,8 @@ stdenv.mkDerivation rec {
2827 enableParallelBuilding = true;
2928
3029 installTargets = [ "install_client" "install_man" ];
31− postInstall = ''
32− wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nx-libs}/bin:${openssh}/libexec";
33− '';
30+
31+ qtWrapperArgs = [ ''--suffix PATH : ${nx-libs}/bin:${openssh}/libexec'' ];
3432
3533 meta = with stdenv.lib; {
3634 description = "Graphical NoMachine NX3 remote desktop client";