nixpkgs/pkgs/applications/editors/android-studio/default.nix
Michael Weiss 0dc4a9bb50
android-studio: 3.2.1.0 -> 3.3.0.20
androidStudioPackages.beta: 3.3.0.19 -> 3.3.0.20
2019-01-14 20:42:04 +01:00

47 lines
1.1 KiB
Nix

{ stdenv, callPackage, makeFontsConf, gnome2 }:
let
mkStudio = opts: callPackage (import ./common.nix opts) {
fontsConf = makeFontsConf {
fontDirectories = [];
};
inherit (gnome2) GConf gnome_vfs;
};
stableVersion = {
version = "3.3.0.20"; # "Android Studio 3.3"
build = "182.5199772";
sha256Hash = "0dracganibnkyapn2pk2qqnxpwmii57371ycri4nccaci9v9pcjw";
};
betaVersion = stableVersion;
latestVersion = { # canary & dev
version = "3.4.0.9"; # "Android Studio 3.4 Canary 10"
build = "183.5202479";
sha256Hash = "067mkf8n7bwv0f900d6d2hwxdhcgnp6dxqf6v81y1hf285ybymld";
};
in rec {
# Old alias
preview = beta;
# Attributes are named by their corresponding release channels
stable = mkStudio (stableVersion // {
channel = "stable";
pname = "android-studio";
});
beta = mkStudio (betaVersion // {
channel = "beta";
pname = "android-studio-preview";
});
dev = mkStudio (latestVersion // {
channel = "dev";
pname = "android-studio-dev";
});
canary = mkStudio (latestVersion // {
channel = "canary";
pname = "android-studio-canary";
});
}