mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
android-studio-preview: 3.0.0.7 -> 3.0.0.8
This also contains some refactoring.
This commit is contained in:
parent
4472928a1d
commit
87b215d5f7
|
@ -1,4 +1,4 @@
|
|||
{ pname, version, build, src, meta }:
|
||||
{ pname, version, build, sha256Hash, meta }:
|
||||
{ bash
|
||||
, buildFHSUserEnv
|
||||
, coreutils
|
||||
|
@ -34,8 +34,13 @@
|
|||
|
||||
let
|
||||
androidStudio = stdenv.mkDerivation {
|
||||
inherit src;
|
||||
name = "${pname}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-ide-${build}-linux.zip";
|
||||
sha256 = sha256Hash;
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
makeWrapper
|
||||
unzip
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
{ stdenv, callPackage, fetchurl, makeFontsConf }:
|
||||
let
|
||||
mkStudio = opts: callPackage (import ./common.nix opts);
|
||||
mkStudio = opts: callPackage (import ./common.nix opts) {
|
||||
fontsConf = makeFontsConf {
|
||||
fontDirectories = [];
|
||||
};
|
||||
};
|
||||
in rec {
|
||||
stable = mkStudio rec {
|
||||
pname = "android-studio";
|
||||
version = "2.3.3.0";
|
||||
build = "162.4069837";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-ide-${build}-linux.zip";
|
||||
sha256 = "0zzis9m2xp44xwkj0zvcqw5rh3iyd3finyi5nqhgira1fkacz0qk";
|
||||
};
|
||||
sha256Hash = "0zzis9m2xp44xwkj0zvcqw5rh3iyd3finyi5nqhgira1fkacz0qk";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The Official IDE for Android (stable version)";
|
||||
|
@ -23,30 +23,18 @@ in rec {
|
|||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
};
|
||||
} {
|
||||
fontsConf = makeFontsConf {
|
||||
fontDirectories = [];
|
||||
};
|
||||
};
|
||||
|
||||
preview = mkStudio rec {
|
||||
pname = "android-studio-preview";
|
||||
version = "3.0.0.7"; # This is actually "Android Studio 3.0 Canary 8"
|
||||
build = "171.4195411";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-ide-${build}-linux.zip";
|
||||
sha256 = "1yzhr845shjq2cd5hcanppxmnj34ky9ry755y4ywf5f1w5ha5xzj";
|
||||
};
|
||||
version = "3.0.0.8"; # This is actually "Android Studio 3.0 Canary 9"
|
||||
build = "171.4220116";
|
||||
sha256Hash = "02aw1m65wb5cgjq1dxm86c5m6p8b41kgjcgsl5d0h93fb4clf64b";
|
||||
|
||||
meta = stable.meta // {
|
||||
description = "The Official IDE for Android (preview version)";
|
||||
homepage = https://developer.android.com/studio/preview/index.html;
|
||||
maintainers = with stdenv.lib.maintainers; [ primeos tomsmeets ];
|
||||
};
|
||||
} {
|
||||
fontsConf = makeFontsConf {
|
||||
fontDirectories = [];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue