@@ -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";