3
0
Fork 0
forked from mirrors/nixpkgs

teamviewer: adding a work-in-progress lowprio version 8.

It requires root running a daemon, just to use the client. Suspicious.
This commit is contained in:
Lluís Batlle i Rossell 2013-03-22 12:41:16 +01:00
parent 6f64c0c6d6
commit d716731cf4
2 changed files with 52 additions and 1 deletions

View file

@ -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";
};
}

View file

@ -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 { };