2015-03-06 01:26:15 +01:00
|
|
|
{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, makeWrapper, qt4 }:
|
|
|
|
|
2015-07-29 00:19:17 +02:00
|
|
|
let version = "4.0.5.0"; in
|
2015-03-06 01:26:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "x2goclient-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz";
|
2015-07-29 00:19:17 +02:00
|
|
|
sha256 = "18a2pszh0nq2ir64a1ah1mlzddn4qcd12b339bv30n0y1ir92bi4";
|
2015-03-06 01:26:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Graphical NoMachine NX3 remote desktop client";
|
|
|
|
homepage = http://x2go.org/;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2;
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2015-03-06 01:26:15 +01:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
|
2015-06-17 19:36:06 +02:00
|
|
|
buildInputs = [ cups libssh libXpm nxproxy openldap qt4 ];
|
2015-06-17 23:24:31 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
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" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "ETCDIR=$(out)/etc" ];
|
|
|
|
|
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";
|
|
|
|
'';
|
|
|
|
}
|