-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
teamviewer v9 #4542
Closed
+49
−0
Closed
teamviewer v9 #4542
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ stdenv, fetchurl, libX11, libXtst, libXext, libXdamage, libXfixes, wineUnstable, makeWrapper, libXau | ||
, bash, patchelf }: | ||
|
||
let | ||
topath = "${wineUnstable}/bin"; | ||
|
||
toldpath = stdenv.lib.concatStringsSep ":" (map (x: "${x}/lib") | ||
[ stdenv.gcc.gcc libX11 libXtst libXext libXdamage libXfixes wineUnstable ]); | ||
in | ||
stdenv.mkDerivation { | ||
name = "teamviewer-9.0.32150"; | ||
src = fetchurl { | ||
url = "http://download.teamviewer.com/download/version_9x/teamviewer_linux_x64.deb"; | ||
sha256 = "23e0e12733aba6c04f2d9f6e7ea98c7748c5dc76b07fbdd5a77bd8df415ffc72"; | ||
}; | ||
|
||
buildInputs = [ makeWrapper patchelf ]; | ||
|
||
unpackPhase = '' | ||
ar x $src | ||
tar xf data.tar.gz | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/share/teamviewer9 $out/bin | ||
cp -a opt/teamviewer9/* $out/share/teamviewer9 | ||
rm -R $out/share/teamviewer9/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/teamviewer9/tv_bin/script/teamviewer "\$@" | ||
EOF | ||
chmod +x $out/bin/teamviewer | ||
|
||
patchelf --set-rpath "${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${libX11}/lib:${libXext}/lib:${libXau}/lib:${libXdamage}/lib:${libXfixes}/lib" $out/share/teamviewer9/tv_bin/teamviewerd | ||
patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/share/teamviewer9/tv_bin/teamviewerd | ||
ln -s $out/share/teamviewer9/tv_bin/teamviewerd $out/bin/ | ||
''; | ||
|
||
meta = { | ||
homepage = "http://www.teamviewer.com"; | ||
license = stdenv.lib.licenses.unfree; | ||
description = "Desktop sharing application, providing remote support and online meetings"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hash will change with every new teamviewer update :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my work is just copy-paste of version 8 with replacing it with 9.
It works. I know it could be better but i figured i'll make pull request so others wont have to do manual work which i did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do something similar to
pkgs/games/planetaryannihilation/default.nix
? So user has to set the download urlThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding possibility to override hash and url while retaining default one seems really good idea.
I'll try to add it when i'll have at least a little bit of time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks! Then we should do the same for versions 7 and 8.