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