nixpkgs/pkgs/applications/editors/android-studio/default.nix
2018-08-01 19:47:36 +02:00

53 lines
1.4 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.1.3.0"; # "Android Studio 3.1.3"
build = "173.4819257";
sha256Hash = "196yaswbxh2nd83gimjxr8ggr5xkdxq7n3xlh6ax73v59pj4hryq";
};
betaVersion = {
version = "3.2.0.22"; # "Android Studio 3.2 Beta 5"
build = "181.4913314";
sha256Hash = "016nyn1pqviy089hg0dq7m4cqb39fdxdcy4zknkaq7dmgv1dj6x9";
};
latestVersion = { # canary & dev
version = "3.3.0.2"; # "Android Studio 3.3 Canary 3"
build = "181.4884283";
sha256Hash = "0r93yzw87cgzz60p60gknij5vaqmv1a1kyd4cr9gx8cbxw46lhwh";
};
in rec {
# Old alias
preview = beta;
# Attributes are named by the corresponding release channels
stable = mkStudio (stableVersion // {
channel = "stable";
pname = "android-studio";
#pname = "android-studio-stable"; # TODO: Rename and provide symlink
});
beta = mkStudio (betaVersion // {
channel = "beta";
pname = "android-studio-preview";
#pname = "android-studio-beta"; # TODO: Rename and provide symlink
});
dev = mkStudio (latestVersion // {
channel = "dev";
pname = "android-studio-dev";
});
canary = mkStudio (latestVersion // {
channel = "canary";
pname = "android-studio-canary";
});
}