{ callPackage, makeFontsConf, gnome2, buildFHSUserEnv }: let mkStudio = opts: callPackage (import ./common.nix opts) { fontsConf = makeFontsConf { fontDirectories = []; }; inherit (gnome2) GConf gnome_vfs; inherit buildFHSUserEnv; }; stableVersion = { version = "4.1.1.0"; # "Android Studio 4.1.1" build = "201.6953283"; sha256Hash = "sha256-aAMhhJWcVFdvEZt8fI3tF12Eg3TzlU+kUFMNeCYN1os="; }; betaVersion = { version = "4.2.0.17"; # "Android Studio 4.2 Beta 1" build = "202.6987402"; sha256Hash = "07qr0b1zdzpc1nsi6593518dxp89dcjfp4lznb1d3id8vbqla4i7"; }; latestVersion = { # canary & dev version = "2020.3.1.2"; # "Android Studio Arctic Fox Canary 2" build = "202.7006259"; sha256Hash = "1d4brfx1fh1vlcjkb0x8hjj2qgz2dl5wbaiy8dj8w03vcf493nc5"; }; 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"; }); }