about summary refs log tree commit diff
path: root/pkgs/applications/editors/android-studio/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/editors/android-studio/common.nix')
-rw-r--r--pkgs/applications/editors/android-studio/common.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix
index 87b7a99833dec..74f7d3c8f7a47 100644
--- a/pkgs/applications/editors/android-studio/common.nix
+++ b/pkgs/applications/editors/android-studio/common.nix
@@ -257,12 +257,14 @@ let
     passthru = let
       withSdk = androidSdk: mkAndroidStudioWrapper { inherit androidStudio androidSdk; };
     in {
+      inherit version;
       unwrapped = androidStudio;
       full = withSdk androidenv.androidPkgs.androidsdk;
       inherit withSdk;
       sdk = androidSdk;
+      updateScript = [ ./update.sh "${channel}" ];
     };
-    meta = with lib; {
+    meta = {
       description = "Official IDE for Android (${channel} channel)";
       longDescription = ''
         Android Studio is the official IDE for Android app development, based on
@@ -271,7 +273,7 @@ let
       homepage = if channel == "stable"
         then "https://developer.android.com/studio/index.html"
         else "https://developer.android.com/studio/preview/index.html";
-      license = with licenses; [ asl20 unfree ]; # The code is under Apache-2.0, but:
+      license = with lib.licenses; [ asl20 unfree ]; # The code is under Apache-2.0, but:
       # If one selects Help -> Licenses in Android Studio, the dialog shows the following:
       # "Android Studio includes proprietary code subject to separate license,
       # including JetBrains CLion(R) (www.jetbrains.com/clion) and IntelliJ(R)
@@ -280,11 +282,11 @@ let
       # binaries are also distributed as proprietary software (unlike the
       # source-code itself).
       platforms = [ "x86_64-linux" ];
-      maintainers = with maintainers; rec {
-        stable = [ alapshin numinit ];
-        beta = [ alapshin numinit ];
-        canary = [ alapshin numinit ];
-        dev = canary;
+      maintainers = with lib.maintainers; rec {
+        stable = [ alapshin johnrtitor numinit ];
+        beta = stable;
+        canary = stable;
+        dev = stable;
       }."${channel}";
       mainProgram = pname;
     };