about summary refs log tree commit diff
path: root/pkgs/applications/networking/remote
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-03-06 01:26:15 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-03-06 03:48:40 +0100
commit22080d19519c91c3e72d69a8b94f939ceb2930c1 (patch)
treefaf9915ecef145a8b292c33c81d67c8cc42447f3 /pkgs/applications/networking/remote
parent2a93bee7f32c6eabea918ec99251015e5b0b4f16 (diff)
Add x2goclient 4.0.3.2
Thanks to Christoph-Simon Senjak <c s s at u x u l dot d e>
Diffstat (limited to 'pkgs/applications/networking/remote')
-rw-r--r--pkgs/applications/networking/remote/x2goclient/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/networking/remote/x2goclient/default.nix b/pkgs/applications/networking/remote/x2goclient/default.nix
new file mode 100644
index 0000000000000..9ce00facfbb79
--- /dev/null
+++ b/pkgs/applications/networking/remote/x2goclient/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, makeWrapper, qt4 }:
+
+let version = "4.0.3.2"; in
+stdenv.mkDerivation rec {
+  name = "x2goclient-${version}";
+
+  src = fetchurl {
+    url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz";
+    sha256 = "0vqcz9kmnbvlj8kns68zl60019fdz97rydz4wsgnsgdf7r370npn";
+  };
+
+  meta = with stdenv.lib; {
+    description = "Graphical NoMachine NX3 remote desktop client";
+    homepage = http://x2go.org/;
+    license = with licenses; gpl2;
+    platforms = with platforms; linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+
+  buildInputs = [ cups libssh libXpm nxproxy openldap makeWrapper qt4 ];
+
+  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" ];
+
+  enableParallelBuild = true;
+
+  installTargets = [ "install_client" "install_man" ];
+  postInstall = ''
+    wrapProgram "$out/bin/x2goclient" --suffix PATH : "${nxproxy}/bin";
+  '';
+}