summary refs log tree commit diff
path: root/pkgs/development/mobile/androidenv/support.nix
blob: 28587f494fbdafce4fc2f5905cdcf74ef7033a5d (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 = "23.1";
  name = "android-support-r${version}";
  src = fetchurl {
    url = "https://dl.google.com/android/repository/support_r${version}.zip";
    sha1 = "c43a56fcd1c2aa620f6178a0ef529623ed77b3c7";
  };
  
  buildCommand = ''
    mkdir -p $out
    cd $out
    unzip $src
  '';
  
  buildInputs = [ unzip ];
}