From c10e0eb43ff335c8b0ecddceca288e7551461498 Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Sun, 26 Jan 2025 16:48:45 -0600 Subject: [PATCH] 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. --- pkgs/applications/networking/remote/teamviewer/default.nix | 2 ++ .../networking/remote/teamviewer/update-teamviewer.sh | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100755 pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh diff --git a/pkgs/applications/networking/remote/teamviewer/default.nix b/pkgs/applications/networking/remote/teamviewer/default.nix index f9cdcd804b34..895955b161b9 100644 --- a/pkgs/applications/networking/remote/teamviewer/default.nix +++ b/pkgs/applications/networking/remote/teamviewer/default.nix @@ -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 ]; diff --git a/pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh b/pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh new file mode 100755 index 000000000000..e8d2f681851a --- /dev/null +++ b/pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh @@ -0,0 +1,7 @@ +#! /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: \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