Unverified Commit c10e0eb4 authored by C4 Patino's avatar C4 Patino
Browse files

teamviewer: adding auto-update script

Adding auto-updating through nix-update so that teamviewer automatically
fetches the latest version. The package previously got out of date
enough that newer clients were rejecting connections.
parent 3e21a686
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -152,6 +152,8 @@ mkDerivation rec {
  dontWrapQtApps = true;
  preferLocalBuild = true;

  passthru.updateScript = ./update-teamviewer.sh;

  meta = with lib; {
    homepage = "https://www.teamviewer.com";
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
+7 −0
Original line number Diff line number Diff line
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p nix-update curl

TEAMVIEWER_VER=$(curl -s https://www.teamviewer.com/en-us/download/linux/ | grep -oP 'Current version: <span data-dl-version-label>\K[0-9]+\.[0-9]+\.[0-9]+')

nix-update --version "$TEAMVIEWER_VER" --system x86_64-linux teamviewer
nix-update --version "skip" --system aarch64-linux teamviewer