2020-07-31 15:28:57 +02:00
|
|
|
{ callPackage, makeFontsConf, gnome2, buildFHSUserEnv }:
|
2018-03-21 12:52:28 +01:00
|
|
|
|
2017-07-13 11:23:24 +02:00
|
|
|
let
|
2017-08-02 02:12:11 +02:00
|
|
|
mkStudio = opts: callPackage (import ./common.nix opts) {
|
|
|
|
fontsConf = makeFontsConf {
|
|
|
|
fontDirectories = [];
|
|
|
|
};
|
2018-03-13 14:08:09 +01:00
|
|
|
inherit (gnome2) GConf gnome_vfs;
|
2020-07-31 15:28:57 +02:00
|
|
|
inherit buildFHSUserEnv;
|
2017-08-02 02:12:11 +02:00
|
|
|
};
|
2018-04-12 00:09:03 +02:00
|
|
|
stableVersion = {
|
2020-11-11 17:21:15 +01:00
|
|
|
version = "4.1.1.0"; # "Android Studio 4.1.1"
|
|
|
|
build = "201.6953283";
|
|
|
|
sha256Hash = "sha256-aAMhhJWcVFdvEZt8fI3tF12Eg3TzlU+kUFMNeCYN1os=";
|
2019-01-16 12:59:44 +01:00
|
|
|
};
|
2020-02-28 20:55:43 +01:00
|
|
|
betaVersion = {
|
2020-09-16 16:49:33 +02:00
|
|
|
version = "4.1.0.18"; # "Android Studio 4.1 RC 3"
|
|
|
|
build = "201.6823847";
|
|
|
|
sha256Hash = "sha256-qbxmR9g8DSKzcP09bJuc+am79BSXWG39UQxFEb1bZ88=";
|
2019-10-26 13:03:21 +02:00
|
|
|
};
|
2020-02-28 20:55:43 +01:00
|
|
|
latestVersion = { # canary & dev
|
2020-11-08 15:03:32 +01:00
|
|
|
version = "4.2.0.16"; # "Android Studio 4.2 Canary 16"
|
|
|
|
build = "202.6939830";
|
|
|
|
sha256Hash = "sha256-2Xh0GR4BHZI6ofdyMI2icrztI2BmiHWT+1bEZIZ58IE=";
|
2020-02-28 20:55:43 +01:00
|
|
|
};
|
2019-08-13 23:52:01 +02:00
|
|
|
in {
|
2018-08-01 18:40:07 +02:00
|
|
|
# Attributes are named by their corresponding release channels
|
2018-03-13 02:05:31 +01:00
|
|
|
|
2018-04-12 00:09:03 +02:00
|
|
|
stable = mkStudio (stableVersion // {
|
2018-08-01 18:18:19 +02:00
|
|
|
channel = "stable";
|
2017-07-13 11:23:24 +02:00
|
|
|
pname = "android-studio";
|
2018-04-12 00:09:03 +02:00
|
|
|
});
|
2017-07-13 11:23:24 +02:00
|
|
|
|
2018-08-01 18:18:19 +02:00
|
|
|
beta = mkStudio (betaVersion // {
|
|
|
|
channel = "beta";
|
2019-01-17 18:41:37 +01:00
|
|
|
pname = "android-studio-beta";
|
2018-04-12 00:09:03 +02:00
|
|
|
});
|
2018-03-13 02:23:41 +01:00
|
|
|
|
2018-03-21 13:06:37 +01:00
|
|
|
dev = mkStudio (latestVersion // {
|
2018-08-01 18:18:19 +02:00
|
|
|
channel = "dev";
|
2018-03-13 02:23:41 +01:00
|
|
|
pname = "android-studio-dev";
|
2018-03-21 13:06:37 +01:00
|
|
|
});
|
2018-03-13 02:23:41 +01:00
|
|
|
|
2018-03-21 13:06:37 +01:00
|
|
|
canary = mkStudio (latestVersion // {
|
2018-08-01 18:18:19 +02:00
|
|
|
channel = "canary";
|
2018-03-13 02:23:41 +01:00
|
|
|
pname = "android-studio-canary";
|
2018-03-21 13:06:37 +01:00
|
|
|
});
|
2017-07-13 11:23:24 +02:00
|
|
|
}
|