nixpkgs/pkgs/applications/editors/android-studio/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

{ callPackage, makeFontsConf, gnome2 }:
let
mkStudio = opts: callPackage (import ./common.nix opts) {
fontsConf = makeFontsConf {
fontDirectories = [];
};
inherit (gnome2) GConf gnome_vfs;
};
stableVersion = {
2019-12-09 13:30:40 +00:00
version = "3.5.3.0"; # "Android Studio 3.5.3"
build = "191.6010548";
sha256Hash = "1nsm4d3vdx90szqd78a8mjq65xc9m5ipd35cqrlx3c3ny900sqxg";
};
betaVersion = {
version = "3.6.0.17"; # "Android Studio 3.6 Beta 5"
build = "192.6018865";
sha256Hash = "0qlrdf7a6f5585mrni1aa2chic4n7b9c8lgrj8br6q929hc2f5d9";
};
latestVersion = { # canary & dev
version = "4.0.0.5"; # "Android Studio 4.0 Canary 5"
build = "193.6039983";
sha256Hash = "19pidwl46z7alc0d7awhvi4aq1r87f99wh5yfi94s1zd2azm9f9z";
};
2019-08-13 22:52:01 +01:00
in {
# Attributes are named by their corresponding release channels
stable = mkStudio (stableVersion // {
channel = "stable";
pname = "android-studio";
});
beta = mkStudio (betaVersion // {
channel = "beta";
pname = "android-studio-beta";
});
dev = mkStudio (latestVersion // {
channel = "dev";
pname = "android-studio-dev";
});
canary = mkStudio (latestVersion // {
channel = "canary";
pname = "android-studio-canary";
});
}