Skip to content

Commit

Permalink
teamviewer: 15.38.3 -> 15.49.2 (#276948)
Browse files Browse the repository at this point in the history
* teamviewer: 15.38.3 -> 15.49.2

* teamviewer: add qtquickcontrols2
  • Loading branch information
ifurther committed Mar 23, 2024
1 parent ee82708 commit f657061
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions pkgs/applications/networking/remote/teamviewer/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ mkDerivation
, lib
, stdenv
, fetchurl
, autoPatchelfHook
, makeWrapper
Expand All @@ -8,6 +9,7 @@
, qtbase
, qtwebengine
, qtx11extras
, qtquickcontrols2
, getconf
, glibc
, libXrandr
Expand All @@ -26,20 +28,30 @@ mkDerivation rec {
pname = "teamviewer";
# teamviewer itself has not development files but the dev output removes propagated other dev outputs from runtime
outputs = [ "out" "dev" ];
version = "15.38.3";

src = fetchurl {
url = "https://dl.tvcdn.de/download/linux/version_${lib.versions.major version}x/teamviewer_${version}_amd64.deb";
sha256 = "sha256-+GGpGV8rl15VQvPRA2PWngQI4VoxCrZ0ArEm9FgdOVE=";
};
version = "15.49.2";

src =
let
base_url = "https://dl.tvcdn.de/download/linux/version_${lib.versions.major version}x";
in
{
x86_64-linux = fetchurl {
url = "${base_url}/teamviewer_${version}_amd64.deb";
sha256 = "sha256-Ag41RQD4lp4Sxuz6wZwiFzVxUalV+M3Zwa2Cug4iNSM=";
};
aarch64-linux = fetchurl {
url = "${base_url}/teamviewer_${version}_arm64.deb";
sha256 = "sha256-JGSmFq4q8TQJVIrS6qQxIxZPNKgor+pFetextLJPHtg=";
};
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");

unpackPhase = ''
ar x $src
tar xf data.tar.*
'';

nativeBuildInputs = [ autoPatchelfHook makeWrapper wrapQtAppsHook ];
buildInputs = [ qtbase qtwebengine qtx11extras icu63 ];
buildInputs = [ qtbase qtwebengine qtx11extras qtquickcontrols2 icu63 ];

installPhase = ''
mkdir -p $out/share/teamviewer $out/bin $out/share/applications
Expand Down

0 comments on commit f657061

Please sign in to comment.