2019-02-16 11:29:50 +00:00
|
|
|
{ stdenv, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
|
2019-07-24 11:33:19 +00:00
|
|
|
, mkDerivation, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
mkDerivation {
|
2018-12-05 19:30:03 +00:00
|
|
|
pname = "x2goclient";
|
2019-07-24 06:16:18 +00: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 06:16:18 +00: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 15:32:07 +00:00
|
|
|
postPatch = ''
|
2015-03-06 00:26:15 +00:00
|
|
|
substituteInPlace Makefile \
|
2018-05-19 21:46:26 +00:00
|
|
|
--replace "SHELL=/bin/bash" "SHELL=$SHELL" \
|
2018-05-20 19:53:45 +00: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 19:53:45 +00: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 11:33:19 +00: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 01:11:51 +00: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
|
|
|
}
|