2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, callPackage, makeFontsConf, gnome2 }:
|
2018-03-21 12:52:28 +01:00
|
|
|
|
2017-07-13 11:23:24 +02:00
|
|
|
let
|
2017-08-02 02:12:11 +02:00
|
|
|
mkStudio = opts: callPackage (import ./common.nix opts) {
|
|
|
|
fontsConf = makeFontsConf {
|
|
|
|
fontDirectories = [];
|
|
|
|
};
|
2018-03-13 14:08:09 +01:00
|
|
|
inherit (gnome2) GConf gnome_vfs;
|
2017-08-02 02:12:11 +02:00
|
|
|
};
|
2018-04-12 00:09:03 +02:00
|
|
|
stableVersion = {
|
2019-03-04 20:35:22 +01:00
|
|
|
version = "3.3.2.0"; # "Android Studio 3.3.2"
|
|
|
|
build = "182.5314842";
|
|
|
|
sha256Hash = "0smh3d3v8n0isxg7fkls20622gp52f58i2b6wa4a0g8wnvmd6mw2";
|
2018-10-20 19:57:58 +02:00
|
|
|
};
|
2019-01-16 12:59:44 +01:00
|
|
|
betaVersion = {
|
2019-02-22 22:59:56 +01:00
|
|
|
version = "3.4.0.14"; # "Android Studio 3.4 Beta 5"
|
|
|
|
build = "183.5310756";
|
|
|
|
sha256Hash = "0np8600qvqpw9kcmgp04i1nak1339ck1iidkzr75kigp5rgdl2bq";
|
2018-03-21 13:06:37 +01:00
|
|
|
};
|
2019-01-16 12:59:44 +01:00
|
|
|
latestVersion = { # canary & dev
|
2019-02-26 22:33:47 +01:00
|
|
|
version = "3.5.0.5"; # "Android Studio 3.5 Canary 6"
|
|
|
|
build = "183.5326993";
|
|
|
|
sha256Hash = "06d43qw0p6zpy6vmriiihql5vgc6c4darplc2148y616hx0whrql";
|
2019-01-16 12:59:44 +01:00
|
|
|
};
|
2017-07-13 11:23:24 +02:00
|
|
|
in rec {
|
2019-01-17 19:02:51 +01: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 02:05:31 +01:00
|
|
|
|
2018-08-01 18:40:07 +02:00
|
|
|
# Attributes are named by their corresponding release channels
|
2018-03-13 02:05:31 +01:00
|
|
|
|
2018-04-12 00:09:03 +02:00
|
|
|
stable = mkStudio (stableVersion // {
|
2018-08-01 18:18:19 +02:00
|
|
|
channel = "stable";
|
2017-07-13 11:23:24 +02:00
|
|
|
pname = "android-studio";
|
2018-04-12 00:09:03 +02:00
|
|
|
});
|
2017-07-13 11:23:24 +02:00
|
|
|
|
2018-08-01 18:18:19 +02:00
|
|
|
beta = mkStudio (betaVersion // {
|
|
|
|
channel = "beta";
|
2019-01-17 18:41:37 +01:00
|
|
|
pname = "android-studio-beta";
|
2018-04-12 00:09:03 +02:00
|
|
|
});
|
2018-03-13 02:23:41 +01:00
|
|
|
|
2018-03-21 13:06:37 +01:00
|
|
|
dev = mkStudio (latestVersion // {
|
2018-08-01 18:18:19 +02:00
|
|
|
channel = "dev";
|
2018-03-13 02:23:41 +01:00
|
|
|
pname = "android-studio-dev";
|
2018-03-21 13:06:37 +01:00
|
|
|
});
|
2018-03-13 02:23:41 +01:00
|
|
|
|
2018-03-21 13:06:37 +01:00
|
|
|
canary = mkStudio (latestVersion // {
|
2018-08-01 18:18:19 +02:00
|
|
|
channel = "canary";
|
2018-03-13 02:23:41 +01:00
|
|
|
pname = "android-studio-canary";
|
2018-03-21 13:06:37 +01:00
|
|
|
});
|
2017-07-13 11:23:24 +02:00
|
|
|
}
|