2020-07-31 14:28:57 +01:00
|
|
|
{ callPackage, makeFontsConf, gnome2, buildFHSUserEnv }:
|
2018-03-21 11:52:28 +00:00
|
|
|
|
2017-07-13 10:23:24 +01:00
|
|
|
let
|
2017-08-02 01:12:11 +01:00
|
|
|
mkStudio = opts: callPackage (import ./common.nix opts) {
|
|
|
|
fontsConf = makeFontsConf {
|
|
|
|
fontDirectories = [];
|
|
|
|
};
|
2018-03-13 13:08:09 +00:00
|
|
|
inherit (gnome2) GConf gnome_vfs;
|
2020-07-31 14:28:57 +01:00
|
|
|
inherit buildFHSUserEnv;
|
2017-08-02 01:12:11 +01:00
|
|
|
};
|
2018-04-11 23:09:03 +01:00
|
|
|
stableVersion = {
|
2021-09-03 16:48:50 +01:00
|
|
|
version = "2020.3.1.24"; # "Android Studio Arctic Fox (2020.3.1)"
|
|
|
|
sha256Hash = "0k8jcq8vpjayvwm9wqcrjhnp7dly0h4bb8nxspck5zmi8q2ar67l";
|
2019-01-16 11:59:44 +00:00
|
|
|
};
|
2020-02-28 19:55:43 +00:00
|
|
|
betaVersion = {
|
2021-07-25 08:07:56 +01:00
|
|
|
version = "2020.3.1.21"; # "Android Studio Arctic Fox (2020.3.1) RC 1"
|
|
|
|
sha256Hash = "04k7c328bl8ixi8bvp2mm33q2hmv40yc9p5dff5cghyycarwpd3f";
|
2019-10-26 12:03:21 +01:00
|
|
|
};
|
2020-02-28 19:55:43 +00:00
|
|
|
latestVersion = { # canary & dev
|
2021-09-11 19:31:20 +01:00
|
|
|
version = "2021.1.1.11"; # "Android Studio Bumblebee (2021.1.1) Canary 11"
|
|
|
|
sha256Hash = "0npvb7kr259799bs2bs2drvimmmwb0rdzswbkz8zgi5c2fwjcvvl";
|
2020-02-28 19:55:43 +00:00
|
|
|
};
|
2019-08-13 22:52:01 +01:00
|
|
|
in {
|
2018-08-01 17:40:07 +01:00
|
|
|
# Attributes are named by their corresponding release channels
|
2018-03-13 01:05:31 +00:00
|
|
|
|
2018-04-11 23:09:03 +01:00
|
|
|
stable = mkStudio (stableVersion // {
|
2018-08-01 17:18:19 +01:00
|
|
|
channel = "stable";
|
2017-07-13 10:23:24 +01:00
|
|
|
pname = "android-studio";
|
2018-04-11 23:09:03 +01:00
|
|
|
});
|
2017-07-13 10:23:24 +01:00
|
|
|
|
2018-08-01 17:18:19 +01:00
|
|
|
beta = mkStudio (betaVersion // {
|
|
|
|
channel = "beta";
|
2019-01-17 17:41:37 +00:00
|
|
|
pname = "android-studio-beta";
|
2018-04-11 23:09:03 +01:00
|
|
|
});
|
2018-03-13 01:23:41 +00:00
|
|
|
|
2018-03-21 12:06:37 +00:00
|
|
|
dev = mkStudio (latestVersion // {
|
2018-08-01 17:18:19 +01:00
|
|
|
channel = "dev";
|
2018-03-13 01:23:41 +00:00
|
|
|
pname = "android-studio-dev";
|
2018-03-21 12:06:37 +00:00
|
|
|
});
|
2018-03-13 01:23:41 +00:00
|
|
|
|
2018-03-21 12:06:37 +00:00
|
|
|
canary = mkStudio (latestVersion // {
|
2018-08-01 17:18:19 +01:00
|
|
|
channel = "canary";
|
2018-03-13 01:23:41 +00:00
|
|
|
pname = "android-studio-canary";
|
2018-03-21 12:06:37 +00:00
|
|
|
});
|
2017-07-13 10:23:24 +01:00
|
|
|
}
|