2017-09-04 16:41:00 +00:00
|
|
|
{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, openssh, makeWrapper, qt4 }:
|
2015-03-06 00:26:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "x2goclient-${version}";
|
2018-05-19 21:46:26 +00:00
|
|
|
version = "4.1.1.1";
|
2015-03-06 00:26:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz";
|
2018-05-19 21:46:26 +00:00
|
|
|
sha256 = "0jzlwn0v8b123h5l7hrhs35x2z6mb98zg1s0shqb4yfp2g641yp3";
|
2015-03-06 00:26:15 +00:00
|
|
|
};
|
|
|
|
|
2017-09-04 16:41:00 +00:00
|
|
|
buildInputs = [ cups libssh libXpm nxproxy openldap openssh qt4 ];
|
2016-05-29 09:36:27 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-03-06 00:26:15 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile \
|
2018-05-19 21:46:26 +00:00
|
|
|
--replace "SHELL=/bin/bash" "SHELL=$SHELL" \
|
2015-03-06 00:26:15 +00:00
|
|
|
--replace "lrelease-qt4" "${qt4}/bin/lrelease" \
|
|
|
|
--replace "qmake-qt4" "${qt4}/bin/qmake" \
|
|
|
|
--replace "-o root -g root" ""
|
|
|
|
'';
|
|
|
|
|
2016-05-29 09:36:27 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "ETCDIR=$(out)/etc" ];
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2015-03-06 03:37:28 +00:00
|
|
|
enableParallelBuilding = true;
|
2015-03-06 00:26:15 +00:00
|
|
|
|
|
|
|
installTargets = [ "install_client" "install_man" ];
|
|
|
|
postInstall = ''
|
2017-09-04 16:41:00 +00:00
|
|
|
wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nxproxy}/bin:${openssh}/libexec";
|
2015-03-06 00:26:15 +00:00
|
|
|
'';
|
2016-01-24 19:31:44 +00: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 00:26:15 +00:00
|
|
|
}
|