2019-02-16 11:29:50 +00:00
|
|
|
{ stdenv, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
|
2018-12-05 19:30:03 +00:00
|
|
|
, makeWrapper, qtbase, qtsvg, qtx11extras, qttools, phonon, pkgconfig }:
|
2015-03-06 00:26:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-05 19:30:03 +00:00
|
|
|
pname = "x2goclient";
|
|
|
|
version = "unstable-2018-11-30";
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2018-12-05 19:30:03 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://code.x2go.org/x2goclient.git";
|
|
|
|
rev = "659655675f11ffd361ab9fb48fa77a01a1536fe8";
|
|
|
|
sha256 = "05gfs11m259bchy3k0ihqpwg9wf8lp94rbca5dzla9fjzrb7pyy4";
|
2015-03-06 00:26:15 +00:00
|
|
|
};
|
|
|
|
|
2019-02-16 11:29:50 +00:00
|
|
|
buildInputs = [ cups libssh libXpm nx-libs openldap openssh
|
2018-12-05 19:30:03 +00:00
|
|
|
qtbase qtsvg qtx11extras qttools phonon pkgconfig ];
|
2016-05-29 09:36:27 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-03-06 00:26:15 +00:00
|
|
|
|
2018-06-22 15:32:07 +00:00
|
|
|
postPatch = ''
|
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
|
|
|
|
2015-03-06 03:37:28 +00:00
|
|
|
enableParallelBuilding = true;
|
2015-03-06 00:26:15 +00:00
|
|
|
|
|
|
|
installTargets = [ "install_client" "install_man" ];
|
|
|
|
postInstall = ''
|
2019-02-16 11:29:50 +00:00
|
|
|
wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nx-libs}/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
|
|
|
}
|