From d716731cf4fa2c5936d00968b2cb2e430ae02206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 22 Mar 2013 12:41:16 +0100 Subject: [PATCH] teamviewer: adding a work-in-progress lowprio version 8. It requires root running a daemon, just to use the client. Suspicious. --- .../networking/remote/teamviewer/8.nix | 48 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/networking/remote/teamviewer/8.nix diff --git a/pkgs/applications/networking/remote/teamviewer/8.nix b/pkgs/applications/networking/remote/teamviewer/8.nix new file mode 100644 index 000000000000..b38a95ad2e9c --- /dev/null +++ b/pkgs/applications/networking/remote/teamviewer/8.nix @@ -0,0 +1,48 @@ +{ stdenv, fetchurl, libX11, libXtst, libXext, libXdamage, libXfixes, wine, makeWrapper +, bash }: + +# Work in progress. + +# It doesn't want to start unless teamviewerd is running as root. +# I haven't tried to make the daemon run. + +let + topath = "${wine}/bin"; + + toldpath = stdenv.lib.concatStringsSep ":" (map (x: "${x}/lib") + [ stdenv.gcc.gcc libX11 libXtst libXext libXdamage libXfixes wine ]); +in +stdenv.mkDerivation { + name = "teamviewer-8.0.17147"; + src = fetchurl { + url = "http://download.teamviewer.com/download/teamviewer_linux_x64.deb"; + sha256 = "01iynk954pphl5mq4avs843xyzvdfzng1lpsy7skgwvw0k9cx5ab"; + }; + + buildInputs = [ makeWrapper ]; + + unpackPhase = '' + ar x $src + tar xf data.tar.gz + ''; + + installPhase = '' + mkdir -p $out/share/teamviewer8 $out/bin + cp -a opt/teamviewer8/* $out/share/teamviewer8 + rm -R $out/share/teamviewer8/tv_bin/wine/{bin,lib,share} + + cat > $out/bin/teamviewer << EOF + #!${bash}/bin/sh + export LD_LIBRARY_PATH=${toldpath}\''${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} + export PATH=${topath}\''${PATH:+:\$PATH} + $out/share/teamviewer8/tv_bin/script/teamviewer + EOF + chmod +x $out/bin/teamviewer + ''; + + meta = { + homepage = "http://www.teamviewer.com"; + license = "unfree"; + description = "Desktop sharing application, providing remote support and online meetings"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 153c3364bc92..2ef3953e76b4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1629,7 +1629,10 @@ let tcpdump = callPackage ../tools/networking/tcpdump { }; - teamviewer = callPackage_i686 ../applications/networking/remote/teamviewer { }; + teamviewer = callPackage ../applications/networking/remote/teamviewer { }; + + # Work In Progress: it doesn't start unless running a daemon as root + teamviewer8 = lowPrio (callPackage ../applications/networking/remote/teamviewer/8.nix { }); telnet = callPackage ../tools/networking/telnet { };