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 = {
|
2018-08-07 11:01:16 +02:00
|
|
|
version = "3.1.4.0"; # "Android Studio 3.1.4"
|
|
|
|
build = "173.4907809";
|
|
|
|
sha256Hash = "0xx6yprylmcb32ipmwdcfkgddlm1nrxi1w68miclvgrbk015brf2";
|
2018-04-12 00:09:03 +02:00
|
|
|
};
|
2018-08-01 18:18:19 +02:00
|
|
|
betaVersion = {
|
|
|
|
version = "3.2.0.22"; # "Android Studio 3.2 Beta 5"
|
|
|
|
build = "181.4913314";
|
|
|
|
sha256Hash = "016nyn1pqviy089hg0dq7m4cqb39fdxdcy4zknkaq7dmgv1dj6x9";
|
|
|
|
};
|
|
|
|
latestVersion = { # canary & dev
|
2018-08-03 13:25:09 +02:00
|
|
|
version = "3.3.0.3"; # "Android Studio 3.3 Canary 4"
|
|
|
|
build = "182.4924367";
|
|
|
|
sha256Hash = "03fxjxlsbrpklsss1nvlkb41skr5ymmq9vdns8iikcm1ng925vfd";
|
2018-03-21 13:06:37 +01:00
|
|
|
};
|
2017-07-13 11:23:24 +02:00
|
|
|
in rec {
|
2018-08-02 16:31:31 +02:00
|
|
|
# Old alias
|
|
|
|
preview = beta;
|
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";
|
2017-07-13 11:23:24 +02:00
|
|
|
pname = "android-studio-preview";
|
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
|
|
|
}
|