You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. { callPackage, makeFontsConf, gnome2 }:
  2. let
  3. mkStudio = opts: callPackage (import ./common.nix opts) {
  4. fontsConf = makeFontsConf {
  5. fontDirectories = [];
  6. };
  7. inherit (gnome2) GConf gnome_vfs;
  8. };
  9. stableVersion = {
  10. version = "3.5.1.0"; # "Android Studio 3.5.1"
  11. build = "191.5900203";
  12. sha256Hash = "0afxlif8pkrl6m1lhiqri1qv4vf5mfm1yg6qk5rad0442hm3kz4l";
  13. };
  14. betaVersion = stableVersion;
  15. latestVersion = { # canary & dev
  16. version = "3.6.0.12"; # "Android Studio 3.6 Canary 12"
  17. build = "192.5871855";
  18. sha256Hash = "0pxvpxqdxv37sl72p7gml70k6kl717k6avw9p0l00cys0zbvb3zq";
  19. };
  20. in {
  21. # Attributes are named by their corresponding release channels
  22. stable = mkStudio (stableVersion // {
  23. channel = "stable";
  24. pname = "android-studio";
  25. });
  26. beta = mkStudio (betaVersion // {
  27. channel = "beta";
  28. pname = "android-studio-beta";
  29. });
  30. dev = mkStudio (latestVersion // {
  31. channel = "dev";
  32. pname = "android-studio-dev";
  33. });
  34. canary = mkStudio (latestVersion // {
  35. channel = "canary";
  36. pname = "android-studio-canary";
  37. });
  38. }