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.
This commit is contained in:
parent
3034859422
commit
289c607cf5
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
|
{ stdenv, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
|
||||||
, makeWrapper, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
|
, mkDerivation, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "x2goclient";
|
pname = "x2goclient";
|
||||||
version = "unstable-2019-07-24";
|
version = "unstable-2019-07-24";
|
||||||
|
|
||||||
@ -13,7 +13,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ cups libssh libXpm nx-libs openldap openssh
|
buildInputs = [ cups libssh libXpm nx-libs openldap openssh
|
||||||
qtbase qtsvg qtx11extras qttools phonon pkgconfig ];
|
qtbase qtsvg qtx11extras qttools phonon pkgconfig ];
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
@ -28,9 +27,8 @@ stdenv.mkDerivation rec {
|
|||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installTargets = [ "install_client" "install_man" ];
|
installTargets = [ "install_client" "install_man" ];
|
||||||
postInstall = ''
|
|
||||||
wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nx-libs}/bin:${openssh}/libexec";
|
qtWrapperArgs = [ ''--suffix PATH : ${nx-libs}/bin:${openssh}/libexec'' ];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Graphical NoMachine NX3 remote desktop client";
|
description = "Graphical NoMachine NX3 remote desktop client";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user