2019-02-16 11:29:50 +00:00
|
|
|
{ stdenv, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
|
2019-07-24 12:33:19 +01:00
|
|
|
, mkDerivation, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
mkDerivation {
|
2018-12-05 19:30:03 +00:00
|
|
|
pname = "x2goclient";
|
2019-07-24 07:16:18 +01:00
|
|
|
version = "unstable-2019-07-24";
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2018-12-05 19:30:03 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://code.x2go.org/x2goclient.git";
|
2019-07-24 07:16:18 +01:00
|
|
|
rev = "704c4ab92d20070dd160824c9b66a6d1c56dcc49";
|
|
|
|
sha256 = "1pndp3lfzwifyxqq0gps3p1bwakw06clbk6n8viv020l4bsfmq5f";
|
2015-03-06 00:26:15 +00:00
|
|
|
};
|
|
|
|
|
2019-02-16 11:29:50 +00:00
|
|
|
buildInputs = [ cups libssh libXpm nx-libs openldap openssh
|
2018-12-05 19:30:03 +00:00
|
|
|
qtbase qtsvg qtx11extras qttools phonon pkgconfig ];
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2018-06-22 16:32:07 +01:00
|
|
|
postPatch = ''
|
2015-03-06 00:26:15 +00:00
|
|
|
substituteInPlace Makefile \
|
2018-05-19 22:46:26 +01:00
|
|
|
--replace "SHELL=/bin/bash" "SHELL=$SHELL" \
|
2018-05-20 20:53:45 +01:00
|
|
|
--replace "lrelease-qt4" "${qttools.dev}/bin/lrelease" \
|
|
|
|
--replace "qmake-qt4" "${qtbase.dev}/bin/qmake" \
|
2015-03-06 00:26:15 +00:00
|
|
|
--replace "-o root -g root" ""
|
|
|
|
'';
|
|
|
|
|
2018-05-20 20:53:45 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "ETCDIR=$(out)/etc" "build_client" "build_man" ];
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2015-03-06 03:37:28 +00:00
|
|
|
enableParallelBuilding = true;
|
2015-03-06 00:26:15 +00:00
|
|
|
|
|
|
|
installTargets = [ "install_client" "install_man" ];
|
2019-07-24 12:33:19 +01:00
|
|
|
|
|
|
|
qtWrapperArgs = [ ''--suffix PATH : ${nx-libs}/bin:${openssh}/libexec'' ];
|
2016-01-24 19:31:44 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Graphical NoMachine NX3 remote desktop client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://x2go.org/";
|
2016-01-24 19:31:44 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-03-06 00:26:15 +00:00
|
|
|
}
|