2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, callPackage, makeFontsConf, gnome2 }:
|
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;
|
2017-08-02 01:12:11 +01:00
|
|
|
};
|
2018-04-11 23:09:03 +01:00
|
|
|
stableVersion = {
|
2019-02-08 18:22:51 +00:00
|
|
|
version = "3.3.1.0"; # "Android Studio 3.3.1"
|
|
|
|
build = "182.5264788";
|
|
|
|
sha256Hash = "0fghqkc8pkb7waxclm0qq4nlnsvmv9d3fcj5nnvgbfkjyw032q42";
|
2018-10-20 18:57:58 +01:00
|
|
|
};
|
2019-01-16 11:59:44 +00:00
|
|
|
betaVersion = {
|
2019-02-01 10:38:51 +00:00
|
|
|
version = "3.4.0.12"; # "Android Studio 3.4 Beta 3"
|
|
|
|
build = "183.5256591";
|
|
|
|
sha256Hash = "1yab2sgabgk3wa3wrzv9z1dc2k7x0079v0mlwrp32jwx8r9byvcw";
|
2018-03-21 12:06:37 +00:00
|
|
|
};
|
2019-01-16 11:59:44 +00:00
|
|
|
latestVersion = { # canary & dev
|
2019-02-01 10:41:27 +00:00
|
|
|
version = "3.5.0.2"; # "Android Studio 3.5 Canary 3"
|
|
|
|
build = "183.5256920";
|
|
|
|
sha256Hash = "09bd80ld21hq743xjacsq0nkxwl5xzr253p86n71n580yn4rgmlb";
|
2019-01-16 11:59:44 +00:00
|
|
|
};
|
2017-07-13 10:23:24 +01:00
|
|
|
in rec {
|
2019-01-17 18:02:51 +00:00
|
|
|
# Old alias (TODO @primeos: Remove after 19.03 is branched off):
|
|
|
|
preview = throw ''
|
|
|
|
The attributes "android-studio-preview" and "androidStudioPackages.preview"
|
|
|
|
are now deprecated and will be removed soon, please use
|
|
|
|
"androidStudioPackages.beta" instead. This attribute corresponds to the
|
|
|
|
beta channel, if you want the latest release you can use
|
|
|
|
"androidStudioPackages.dev" or "androidStudioPackages.canary" instead
|
|
|
|
(currently, there is no difference between both channels).
|
|
|
|
'';
|
2018-03-13 01:05:31 +00:00
|
|
|
|
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
|
|
|
}
|