nixpkgs/pkgs/applications/networking/remote/x2goclient/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2018-05-20 21:53:45 +02:00
{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, openssh,
makeWrapper, qtbase, qtsvg, qtx11extras, qttools, phonon }:
stdenv.mkDerivation rec {
name = "x2goclient-${version}";
version = "4.1.2.1";
src = fetchurl {
url = "https://code.x2go.org/releases/source/x2goclient/${name}.tar.gz";
sha256 = "1bzjzz2m9bqqndnk1p9p522cfapsqgkb0wllvqj9d4ir18grh60w";
};
2018-05-20 21:53:45 +02:00
buildInputs = [ cups libssh libXpm nxproxy openldap openssh
qtbase qtsvg qtx11extras qttools phonon ];
nativeBuildInputs = [ makeWrapper ];
2018-06-22 17:32:07 +02:00
patches = [ ./qt511.patch ];
postPatch = ''
substituteInPlace Makefile \
--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" \
--replace "-o root -g root" ""
'';
2018-05-20 21:53:45 +02:00
makeFlags = [ "PREFIX=$(out)" "ETCDIR=$(out)/etc" "build_client" "build_man" ];
enableParallelBuilding = true;
installTargets = [ "install_client" "install_man" ];
postInstall = ''
wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nxproxy}/bin:${openssh}/libexec";
'';
meta = with stdenv.lib; {
description = "Graphical NoMachine NX3 remote desktop client";
homepage = http://x2go.org/;
license = licenses.gpl2;
platforms = platforms.linux;
};
}