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 = {
|
2018-06-08 12:16:53 +01:00
|
|
|
version = "3.1.3.0"; # "Android Studio 3.1.3"
|
|
|
|
build = "173.4819257";
|
|
|
|
sha256Hash = "196yaswbxh2nd83gimjxr8ggr5xkdxq7n3xlh6ax73v59pj4hryq";
|
2018-04-11 23:09:03 +01:00
|
|
|
};
|
2018-08-01 17:18:19 +01:00
|
|
|
betaVersion = {
|
|
|
|
version = "3.2.0.22"; # "Android Studio 3.2 Beta 5"
|
|
|
|
build = "181.4913314";
|
|
|
|
sha256Hash = "016nyn1pqviy089hg0dq7m4cqb39fdxdcy4zknkaq7dmgv1dj6x9";
|
|
|
|
};
|
|
|
|
latestVersion = { # canary & dev
|
2018-07-13 15:05:26 +01:00
|
|
|
version = "3.3.0.2"; # "Android Studio 3.3 Canary 3"
|
|
|
|
build = "181.4884283";
|
|
|
|
sha256Hash = "0r93yzw87cgzz60p60gknij5vaqmv1a1kyd4cr9gx8cbxw46lhwh";
|
2018-03-21 12:06:37 +00:00
|
|
|
};
|
2017-07-13 10:23:24 +01:00
|
|
|
in rec {
|
2018-03-13 01:05:31 +00:00
|
|
|
# Old alias
|
|
|
|
preview = beta;
|
|
|
|
|
2018-03-21 11:52:28 +00:00
|
|
|
# Attributes are named by the 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-03-21 11:52:28 +00:00
|
|
|
#pname = "android-studio-stable"; # TODO: Rename and provide symlink
|
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";
|
2017-07-13 10:23:24 +01:00
|
|
|
pname = "android-studio-preview";
|
2018-03-21 11:52:28 +00:00
|
|
|
#pname = "android-studio-beta"; # TODO: Rename and provide symlink
|
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
|
|
|
}
|