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-05-16 20:43:30 +02:00
|
|
|
version = "3.4.1.0"; # "Android Studio 3.4.1"
|
|
|
|
build = "183.5522156";
|
|
|
|
sha256Hash = "0y4l9d1yrvv1csx6vl4jnqgqy96y44rl6p8hcxrnbvrg61iqnj30";
|
2018-03-21 13:06:37 +01:00
|
|
|
};
|
2019-05-25 21:22:24 +02:00
|
|
|
betaVersion = {
|
2019-06-08 22:05:16 +02:00
|
|
|
version = "3.5.0.16"; # "Android Studio 3.5 Beta 4"
|
|
|
|
build = "191.5619324";
|
|
|
|
sha256Hash = "1rg6v9b8fdnmslpv80khhpx59lvwhj1vwbkyabz2fryfj67wz01z";
|
2019-01-16 12:59:44 +01:00
|
|
|
};
|
2019-05-25 21:22:24 +02:00
|
|
|
latestVersion = { # canary & dev
|
2019-06-08 22:01:31 +02:00
|
|
|
version = "3.6.0.3"; # "Android Studio 3.6 Canary 3"
|
|
|
|
build = "191.5618338";
|
|
|
|
sha256Hash = "0ryf61svn6ra8gh1rvfjqj3j282zmgcvkjvgfvql1wgkjlz21519";
|
2019-05-25 21:22:24 +02:00
|
|
|
};
|
2017-07-13 11:23:24 +02:00
|
|
|
in rec {
|
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
|
|
|
}
|