2016-04-17 01:39:58 +02:00
|
|
|
{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, makeWrapper, qt4, qmake4Hook }:
|
2015-03-06 01:26:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "x2goclient-${version}";
|
2016-03-31 02:40:18 +02:00
|
|
|
version = "4.0.5.1";
|
2015-03-06 01:26:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz";
|
2016-03-31 02:40:18 +02:00
|
|
|
sha256 = "04gdccqywas029a76k3r9zhr2mfn385i9r06cmi8mznxpczrhkl4";
|
2015-03-06 01:26:15 +01:00
|
|
|
};
|
|
|
|
|
2015-06-17 19:36:06 +02:00
|
|
|
buildInputs = [ cups libssh libXpm nxproxy openldap qt4 ];
|
2016-04-17 01:39:58 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper qmake4Hook ];
|
2015-03-06 01:26:15 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "lrelease-qt4" "${qt4}/bin/lrelease" \
|
|
|
|
--replace "qmake-qt4" "${qt4}/bin/qmake" \
|
|
|
|
--replace "-o root -g root" ""
|
|
|
|
'';
|
|
|
|
|
2016-04-17 01:39:58 +02:00
|
|
|
preConfigure = ''
|
|
|
|
qmakeFlags="$qmakeFlags ETCDIR=$out/etc"
|
|
|
|
'';
|
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 = ''
|
|
|
|
wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nxproxy}/bin";
|
|
|
|
'';
|
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;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
2015-03-06 01:26:15 +01:00
|
|
|
}
|