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-10-13 13:57:16 +01:00
|
|
|
version = "3.2.1.0"; # "Android Studio 3.2.1"
|
|
|
|
build = "181.5056338";
|
|
|
|
sha256Hash = "117skqjax1xz9plarhdnrw2rwprjpybdc7mx7wggxapyy920vv5r";
|
2018-08-01 17:18:19 +01:00
|
|
|
};
|
2018-10-20 18:57:58 +01:00
|
|
|
betaVersion = {
|
2018-10-31 19:52:49 +00:00
|
|
|
version = "3.3.0.14"; # "Android Studio 3.3 Beta 2"
|
|
|
|
build = "182.5078385";
|
|
|
|
sha256Hash = "10jw508fzxbknfl1l058ksnnli2nav91wmh2x2p0mz96lkf5bvhn";
|
2018-10-20 18:57:58 +01:00
|
|
|
};
|
2018-08-01 17:18:19 +01:00
|
|
|
latestVersion = { # canary & dev
|
2018-10-29 19:03:09 +00:00
|
|
|
version = "3.4.0.1"; # "Android Studio 3.4 Canary 2"
|
|
|
|
build = "183.5081642";
|
|
|
|
sha256Hash = "0ck6habkgnwbr10pr3bfy8ywm3dsm21k9jdj7g685v22sw0zy3yk";
|
2018-03-21 12:06:37 +00:00
|
|
|
};
|
2017-07-13 10:23:24 +01:00
|
|
|
in rec {
|
2018-08-02 15:31:31 +01:00
|
|
|
# Old alias
|
|
|
|
preview = beta;
|
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";
|
2017-07-13 10:23:24 +01:00
|
|
|
pname = "android-studio-preview";
|
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
|
|
|
}
|