summary refs log tree commit diff
path: root/pkgs/development/mobile/androidenv/support-repository.nix
blob: c0c2fb47fcdd297d5b6652f3cee48703ea444c08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{stdenv, fetchurl, unzip}:

stdenv.mkDerivation rec {
  version = "14";
  name = "android-support-repository-r${version}";
  src = fetchurl {
    url = "http://dl-ssl.google.com/android/repository/android_m2repository_r${version}.zip";
    sha256 = "027mmfzvs07nbp28vn6c6cgszqdrmmgwdfzda87936lpi5dwg34p";
  };

  buildCommand = ''
    mkdir -p $out
    cd $out
    unzip $src
  '';

  buildInputs = [ unzip ];
}