3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/android-studio/default.nix
2020-04-01 12:24:48 +02:00

48 lines
1.2 KiB
Nix

{ callPackage, makeFontsConf, gnome2 }:
let
mkStudio = opts: callPackage (import ./common.nix opts) {
fontsConf = makeFontsConf {
fontDirectories = [];
};
inherit (gnome2) GConf gnome_vfs;
};
stableVersion = {
version = "3.6.2.0"; # "Android Studio 3.6.2"
build = "192.6308749";
sha256Hash = "04r4iwlmns1lf3wfd32cqmndbdz9rf7hfbi5r6qmvpi8j83fghvr";
};
betaVersion = {
version = "4.0.0.12"; # "Android Studio 4.0 Beta 3"
build = "193.6296804";
sha256Hash = "072rvh20xkn7izh6f2r2bspy06jrvcibj2hc12hz76m8cwzf4v0m";
};
latestVersion = { # canary & dev
version = "4.1.0.4"; # "Android Studio 4.1 Canary 4"
build = "193.6325121";
sha256Hash = "19b4a03qfljdisn7cw44qzab85hib000m9mgswzssjh6ylkd9arw";
};
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";
});
}