From f31788b40bd4967804ee7a7d26ab0568b8b3dc4e Mon Sep 17 00:00:00 2001 From: yihanwu1024 <48046869+yihanwu1024@users.noreply.github.com> Date: Sat, 7 Mar 2026 11:38:56 +0100 Subject: [PATCH] android-studio: Refactor files to handle new API --- .../editors/android-studio/common.nix | 3 ++- .../editors/android-studio/default.nix | 15 +++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index 3724d382ee0c..7a3484140eba 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -2,6 +2,7 @@ channel, pname, version, + url, sha256Hash, }: @@ -88,7 +89,7 @@ let inherit version; src = fetchurl { - url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/${filename}"; + url = url; sha256 = sha256Hash; }; diff --git a/pkgs/applications/editors/android-studio/default.nix b/pkgs/applications/editors/android-studio/default.nix index 82bf8c761bb5..35af9bf0cc73 100644 --- a/pkgs/applications/editors/android-studio/default.nix +++ b/pkgs/applications/editors/android-studio/default.nix @@ -16,16 +16,19 @@ let inherit tiling_wm; }; stableVersion = { - version = "2025.2.3.9"; # "Android Studio Otter 3 Feature Drop | 2025.2.3" - sha256Hash = "sha256-mG6myss22nI/LIVQzM19jNPouLe7JEbTqL85u6+Rq8E="; + version = "2025.3.2.6"; # "Android Studio Panda 2 | 2025.3.2" + sha256Hash = "sha256-MpQtjNdogZLPPNB78oL7EgA1ub2bVubxPFVA5tOYB+k="; + url = "https://edgedl.me.gvt1.com/android/studio/ide-zips/2025.3.2.6/android-studio-panda2-linux.tar.gz"; }; betaVersion = { - version = "2025.2.3.8"; # "Android Studio Otter 3 Feature Drop | 2025.2.3 RC 3" - sha256Hash = "sha256-KHvWVIxNzwdgl9kdqXD5Cpvz58r8pWs2VRyPV3VrJH0="; + version = "2025.3.2.5"; # "Android Studio Panda 2 | 2025.3.2 RC 1" + sha256Hash = "sha256-qpmc7MO48GV2nnxEdRstg3ne0Gvlrgk9UX5Dr60gAMM="; + url = "https://edgedl.me.gvt1.com/android/studio/ide-zips/2025.3.2.5/android-studio-panda2-rc1-linux.tar.gz"; }; latestVersion = { - version = "2025.3.1.5"; # "Android Studio Panda 1 | 2025.3.1 Canary 5" - sha256Hash = "sha256-CmM619Itz/0qVSUz6ztZTR93FmEVoUzMJawHwc+Nf8o="; + version = "2025.3.3.2"; # "Android Studio Panda 3 | 2025.3.3 Canary 2" + sha256Hash = "sha256-z8GpBqyEnbyyBc0XPo5q52WS5d7b4292QgUj0FPW+C0="; + url = "https://edgedl.me.gvt1.com/android/studio/ide-zips/2025.3.3.2/android-studio-panda3-canary2-linux.tar.gz"; }; in {