2023-04-11 13:52:27 +03:00
|
|
|
{ callPackage, makeFontsConf, gnome2, buildFHSEnv, tiling_wm ? false }:
|
2018-03-21 14:52:28 +03:00
|
|
|
|
2017-07-13 12:23:24 +03:00
|
|
|
let
|
2017-08-02 03:12:11 +03:00
|
|
|
mkStudio = opts: callPackage (import ./common.nix opts) {
|
|
|
|
fontsConf = makeFontsConf {
|
|
|
|
fontDirectories = [];
|
|
|
|
};
|
2018-03-13 16:08:09 +03:00
|
|
|
inherit (gnome2) GConf gnome_vfs;
|
2023-04-11 13:52:27 +03:00
|
|
|
inherit buildFHSEnv;
|
2022-04-12 20:04:53 +03:00
|
|
|
inherit tiling_wm;
|
2017-08-02 03:12:11 +03:00
|
|
|
};
|
2018-04-12 01:09:03 +03:00
|
|
|
stableVersion = {
|
2024-01-10 14:32:14 +03:00
|
|
|
version = "2023.1.1.27"; # "Android Studio Hedgehog | 2023.1.1 Patch 1"
|
|
|
|
sha256Hash = "sha256-XF+XyHGk7dPTBHKcx929qdFHu6hRJWFO382mh4SuWDs=";
|
2019-01-16 14:59:44 +03:00
|
|
|
};
|
2020-02-28 22:55:43 +03:00
|
|
|
betaVersion = {
|
2024-01-10 22:35:34 +03:00
|
|
|
version = "2023.2.1.20"; # "Android Studio Iguana | 2023.2.1 Beta 2"
|
|
|
|
sha256Hash = "sha256-cFEPgFAKkFx0d7PC4fTElTQVrBZMQs0RL3wR+hqTh2I=";
|
2020-02-28 22:55:43 +03:00
|
|
|
};
|
2023-07-06 00:27:14 +03:00
|
|
|
latestVersion = {
|
2024-01-10 14:32:44 +03:00
|
|
|
version = "2023.3.1.3"; # "Android Studio Jellyfish | 2023.3.1 Canary 3"
|
|
|
|
sha256Hash = "sha256-cPCn9dsQ0v1C2bxXzPoxjuucsMtkeO8D6dVt8hcIluQ=";
|
2023-07-06 00:27:14 +03:00
|
|
|
};
|
2019-08-14 00:52:01 +03:00
|
|
|
in {
|
2018-08-01 19:40:07 +03:00
|
|
|
# Attributes are named by their corresponding release channels
|
2018-03-13 04:05:31 +03:00
|
|
|
|
2018-04-12 01:09:03 +03:00
|
|
|
stable = mkStudio (stableVersion // {
|
2018-08-01 19:18:19 +03:00
|
|
|
channel = "stable";
|
2017-07-13 12:23:24 +03:00
|
|
|
pname = "android-studio";
|
2018-04-12 01:09:03 +03:00
|
|
|
});
|
2017-07-13 12:23:24 +03:00
|
|
|
|
2018-08-01 19:18:19 +03:00
|
|
|
beta = mkStudio (betaVersion // {
|
|
|
|
channel = "beta";
|
2019-01-17 20:41:37 +03:00
|
|
|
pname = "android-studio-beta";
|
2018-04-12 01:09:03 +03:00
|
|
|
});
|
2018-03-13 04:23:41 +03:00
|
|
|
|
2018-03-21 15:06:37 +03:00
|
|
|
dev = mkStudio (latestVersion // {
|
2018-08-01 19:18:19 +03:00
|
|
|
channel = "dev";
|
2018-03-13 04:23:41 +03:00
|
|
|
pname = "android-studio-dev";
|
2018-03-21 15:06:37 +03:00
|
|
|
});
|
2018-03-13 04:23:41 +03:00
|
|
|
|
2018-03-21 15:06:37 +03:00
|
|
|
canary = mkStudio (latestVersion // {
|
2018-08-01 19:18:19 +03:00
|
|
|
channel = "canary";
|
2018-03-13 04:23:41 +03:00
|
|
|
pname = "android-studio-canary";
|
2018-03-21 15:06:37 +03:00
|
|
|
});
|
2017-07-13 12:23:24 +03:00
|
|
|
}
|