2018-05-20 21:53:45 +02:00
|
|
|
{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, openssh,
|
|
|
|
makeWrapper, qtbase, qtsvg, qtx11extras, qttools, phonon }:
|
2015-03-06 01:26:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "x2goclient-${version}";
|
2018-07-11 06:08:01 +02:00
|
|
|
version = "4.1.2.1";
|
2015-03-06 01:26:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://code.x2go.org/releases/source/x2goclient/${name}.tar.gz";
|
2018-07-11 06:08:01 +02:00
|
|
|
sha256 = "1bzjzz2m9bqqndnk1p9p522cfapsqgkb0wllvqj9d4ir18grh60w";
|
2015-03-06 01:26:15 +01:00
|
|
|
};
|
|
|
|
|
2018-05-20 21:53:45 +02:00
|
|
|
buildInputs = [ cups libssh libXpm nxproxy openldap openssh
|
|
|
|
qtbase qtsvg qtx11extras qttools phonon ];
|
2016-05-29 11:36:27 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-03-06 01:26:15 +01:00
|
|
|
|
2018-06-22 17:32:07 +02:00
|
|
|
patches = [ ./qt511.patch ];
|
|
|
|
|
|
|
|
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" ];
|
|
|
|
postInstall = ''
|
2017-09-04 18:41:00 +02:00
|
|
|
wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nxproxy}/bin:${openssh}/libexec";
|
2015-03-06 01:26:15 +01:00
|
|
|
'';
|
2016-01-24 20:31:44 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Graphical NoMachine NX3 remote desktop client";
|
|
|
|
homepage = http://x2go.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-03-06 01:26:15 +01:00
|
|
|
}
|