2020-07-31 06:28:57 -07:00
|
|
|
{ callPackage, makeFontsConf, gnome2, buildFHSUserEnv }:
|
2018-03-21 04:52:28 -07:00
|
|
|
|
2017-07-13 02:23:24 -07:00
|
|
|
let
|
2017-08-01 17:12:11 -07:00
|
|
|
mkStudio = opts: callPackage (import ./common.nix opts) {
|
|
|
|
fontsConf = makeFontsConf {
|
|
|
|
fontDirectories = [];
|
|
|
|
};
|
2018-03-13 06:08:09 -07:00
|
|
|
inherit (gnome2) GConf gnome_vfs;
|
2020-07-31 06:28:57 -07:00
|
|
|
inherit buildFHSUserEnv;
|
2017-08-01 17:12:11 -07:00
|
|
|
};
|
2018-04-11 15:09:03 -07:00
|
|
|
stableVersion = {
|
2021-03-19 04:53:11 -07:00
|
|
|
version = "4.1.3.0"; # "Android Studio 4.1.3"
|
|
|
|
build = "201.7199119";
|
|
|
|
sha256Hash = "06xwgk7bwcmljka8xa56cfwwg858r0bl0xp2jb9hdnkwljf796gm";
|
2019-01-16 03:59:44 -08:00
|
|
|
};
|
2020-02-28 11:55:43 -08:00
|
|
|
betaVersion = {
|
2021-03-19 04:59:54 -07:00
|
|
|
version = "4.2.0.22"; # "Android Studio 4.2 Beta 6"
|
|
|
|
build = "202.7188722";
|
|
|
|
sha256Hash = "0mzwkx1csx194wzg7dc1cii3c16wbmlbq1jdv9ly4nmdxlvc2rxb";
|
2019-10-26 04:03:21 -07:00
|
|
|
};
|
2020-02-28 11:55:43 -08:00
|
|
|
latestVersion = { # canary & dev
|
2021-03-19 05:08:04 -07:00
|
|
|
version = "2020.3.1.10"; # "Android Studio Arctic Fox (2020.3.1) Canary 10"
|
|
|
|
sha256Hash = "15xxyjjjy5pnimc66dcwnqb7z4lq7ll4fl401a3br5ca4d1hpgsj";
|
2020-02-28 11:55:43 -08:00
|
|
|
};
|
2019-08-13 14:52:01 -07:00
|
|
|
in {
|
2018-08-01 09:40:07 -07:00
|
|
|
# Attributes are named by their corresponding release channels
|
2018-03-12 18:05:31 -07:00
|
|
|
|
2018-04-11 15:09:03 -07:00
|
|
|
stable = mkStudio (stableVersion // {
|
2018-08-01 09:18:19 -07:00
|
|
|
channel = "stable";
|
2017-07-13 02:23:24 -07:00
|
|
|
pname = "android-studio";
|
2018-04-11 15:09:03 -07:00
|
|
|
});
|
2017-07-13 02:23:24 -07:00
|
|
|
|
2018-08-01 09:18:19 -07:00
|
|
|
beta = mkStudio (betaVersion // {
|
|
|
|
channel = "beta";
|
2019-01-17 09:41:37 -08:00
|
|
|
pname = "android-studio-beta";
|
2018-04-11 15:09:03 -07:00
|
|
|
});
|
2018-03-12 18:23:41 -07:00
|
|
|
|
2018-03-21 05:06:37 -07:00
|
|
|
dev = mkStudio (latestVersion // {
|
2018-08-01 09:18:19 -07:00
|
|
|
channel = "dev";
|
2018-03-12 18:23:41 -07:00
|
|
|
pname = "android-studio-dev";
|
2018-03-21 05:06:37 -07:00
|
|
|
});
|
2018-03-12 18:23:41 -07:00
|
|
|
|
2018-03-21 05:06:37 -07:00
|
|
|
canary = mkStudio (latestVersion // {
|
2018-08-01 09:18:19 -07:00
|
|
|
channel = "canary";
|
2018-03-12 18:23:41 -07:00
|
|
|
pname = "android-studio-canary";
|
2018-03-21 05:06:37 -07:00
|
|
|
});
|
2017-07-13 02:23:24 -07:00
|
|
|
}
|