From 5ccc02c81bdf29fc0dfda344e82666489d3891ad Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Tue, 15 Jul 2025 14:45:01 -0500 Subject: [PATCH 1/2] teamviewer: updated meta.platforms property to match actually available package outputs --- pkgs/applications/networking/remote/teamviewer/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/remote/teamviewer/default.nix b/pkgs/applications/networking/remote/teamviewer/default.nix index 2dbc038b3fb9..3c47447353cf 100644 --- a/pkgs/applications/networking/remote/teamviewer/default.nix +++ b/pkgs/applications/networking/remote/teamviewer/default.nix @@ -159,7 +159,10 @@ mkDerivation rec { sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.unfree; description = "Desktop sharing application, providing remote support and online meetings"; - platforms = [ "x86_64-linux" ]; + platforms = [ + "x86_64-linux" + "aarch64-linux" + ]; maintainers = with maintainers; [ jagajaga jraygauthier From b88d237b5c3b9316c45cbdf7946e8dc85f05851c Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Tue, 15 Jul 2025 14:45:57 -0500 Subject: [PATCH 2/2] teamviewer: fixed update script to work in a similar way to vscode --- .../remote/teamviewer/update-teamviewer.sh | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh b/pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh index e8d2f681851a..46002360cbb1 100755 --- a/pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh +++ b/pkgs/applications/networking/remote/teamviewer/update-teamviewer.sh @@ -1,7 +1,17 @@ -#! /usr/bin/env nix-shell -#! nix-shell -i bash -p nix-update curl +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p bash curl gnugrep jq nix nix-prefetch nix-prefetch-scripts common-updater-scripts -TEAMVIEWER_VER=$(curl -s https://www.teamviewer.com/en-us/download/linux/ | grep -oP 'Current version: \K[0-9]+\.[0-9]+\.[0-9]+') +set -euo pipefail -nix-update --version "$TEAMVIEWER_VER" --system x86_64-linux teamviewer -nix-update --version "skip" --system aarch64-linux teamviewer +current_version=$(nix eval --raw -f . teamviewer.version) +latest_version=$(curl -s https://www.teamviewer.com/en-us/download/portal/linux/ | grep -oP 'Current version: \K[0-9]+\.[0-9]+\.[0-9]+') + +echo "current version: $current_version" +echo "latest version: $latest_version" + +if [[ "$latest_version" == "$current_version" ]]; then + echo "package is up-to-date" + exit 0 +fi + +update-source-version teamviewer "$latest_version"