2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, callPackage, makeFontsConf, gnome2 }:
|
2018-03-21 11:52:28 +00:00
|
|
|
|
2017-07-13 09:23:24 +00:00
|
|
|
let
|
2017-08-02 00:12:11 +00: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 00:12:11 +00:00
|
|
|
};
|
2018-04-11 22:09:03 +00:00
|
|
|
stableVersion = {
|
2018-10-13 12:57:16 +00:00
|
|
|
version = "3.2.1.0"; # "Android Studio 3.2.1"
|
|
|
|
build = "181.5056338";
|
|
|
|
sha256Hash = "117skqjax1xz9plarhdnrw2rwprjpybdc7mx7wggxapyy920vv5r";
|
2018-08-01 16:18:19 +00:00
|
|
|
};
|
2018-10-20 17:57:58 +00:00
|
|
|
betaVersion = {
|
2018-12-06 20:58:25 +00:00
|
|
|
version = "3.3.0.18"; # "Android Studio 3.3 RC 2"
|
|
|
|
build = "182.5160847";
|
|
|
|
sha256Hash = "05rjwvcph0wx0p0hai5z6n9lnyhk3i5yvbvhr51jc8s3k3b6jyi5";
|
2018-10-20 17:57:58 +00:00
|
|
|
};
|
2018-08-01 16:18:19 +00:00
|
|
|
latestVersion = { # canary & dev
|
2018-12-06 20:53:41 +00:00
|
|
|
version = "3.4.0.6"; # "Android Studio 3.4 Canary 7"
|
|
|
|
build = "183.5159543";
|
|
|
|
sha256Hash = "0r685qqx4w1hwbd8jgrh7ks8bw9m7823ffhd3x6pl7j4b9hpc858";
|
2018-03-21 12:06:37 +00:00
|
|
|
};
|
2017-07-13 09:23:24 +00:00
|
|
|
in rec {
|
2018-08-02 14:31:31 +00:00
|
|
|
# Old alias
|
|
|
|
preview = beta;
|
2018-03-13 01:05:31 +00:00
|
|
|
|
2018-08-01 16:40:07 +00:00
|
|
|
# Attributes are named by their corresponding release channels
|
2018-03-13 01:05:31 +00:00
|
|
|
|
2018-04-11 22:09:03 +00:00
|
|
|
stable = mkStudio (stableVersion // {
|
2018-08-01 16:18:19 +00:00
|
|
|
channel = "stable";
|
2017-07-13 09:23:24 +00:00
|
|
|
pname = "android-studio";
|
2018-04-11 22:09:03 +00:00
|
|
|
});
|
2017-07-13 09:23:24 +00:00
|
|
|
|
2018-08-01 16:18:19 +00:00
|
|
|
beta = mkStudio (betaVersion // {
|
|
|
|
channel = "beta";
|
2017-07-13 09:23:24 +00:00
|
|
|
pname = "android-studio-preview";
|
2018-04-11 22:09:03 +00:00
|
|
|
});
|
2018-03-13 01:23:41 +00:00
|
|
|
|
2018-03-21 12:06:37 +00:00
|
|
|
dev = mkStudio (latestVersion // {
|
2018-08-01 16:18:19 +00: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 16:18:19 +00: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 09:23:24 +00:00
|
|
|
}
|