2022-03-07 15:10:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, cups
|
|
|
|
, libssh
|
|
|
|
, libXpm
|
|
|
|
, nx-libs
|
|
|
|
, openldap
|
|
|
|
, openssh
|
|
|
|
, qt5
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, qttools
|
|
|
|
, phonon
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2022-03-07 15:10:41 +00:00
|
|
|
qt5.mkDerivation rec {
|
2018-12-05 19:30:03 +00:00
|
|
|
pname = "x2goclient";
|
2021-06-10 04:49:33 +00:00
|
|
|
version = "4.1.2.2";
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2021-06-10 04:49:33 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://code.x2go.org/releases/source/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "yZUyZ8QPpnEZrZanO6yx8mYZbaIFnwzc0bjVGZQh0So=";
|
2015-03-06 00:26:15 +00:00
|
|
|
};
|
|
|
|
|
2022-03-07 15:10:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
cups
|
|
|
|
libssh
|
|
|
|
libXpm
|
|
|
|
nx-libs
|
|
|
|
openldap
|
|
|
|
openssh
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
|
|
|
phonon
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
];
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2018-06-22 15:32:07 +00:00
|
|
|
postPatch = ''
|
2021-06-10 04:49:33 +00:00
|
|
|
substituteInPlace src/onmainwindow.cpp --replace "/usr/sbin/sshd" "${openssh}/bin/sshd"
|
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
|
|
|
|
|
|
|
installTargets = [ "install_client" "install_man" ];
|
2019-07-24 11:33:19 +00:00
|
|
|
|
2022-03-07 15:10:41 +00:00
|
|
|
qtWrapperArgs = [ "--suffix PATH : ${nx-libs}/bin:${openssh}/libexec" "--set QT_QPA_PLATFORM xcb" ];
|
2016-01-24 19:31:44 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-24 19:31:44 +00:00
|
|
|
description = "Graphical NoMachine NX3 remote desktop client";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://x2go.org/";
|
2021-06-10 04:49:33 +00:00
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
2016-01-24 19:31:44 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-03-06 00:26:15 +00:00
|
|
|
}
|