2012-11-07 20:10:39 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
2014-09-02 18:18:30 +01:00
|
|
|
xmlns:sdk="http://schemas.android.com/sdk/android/addon/7">
|
2012-11-07 20:10:39 +00:00
|
|
|
|
|
|
|
<xsl:output omit-xml-declaration="yes" indent="no" />
|
|
|
|
<xsl:template match="/sdk:sdk-addon">
|
2015-05-02 14:15:29 +01:00
|
|
|
# This file is generated from generate-addons.sh. DO NOT EDIT.
|
|
|
|
# Execute generate-addons.sh or fetch.sh to update the file.
|
2012-11-07 20:10:39 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
let
|
|
|
|
buildGoogleApis = args:
|
|
|
|
stdenv.mkDerivation (args // {
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cd $out
|
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
2015-05-02 14:15:29 +01:00
|
|
|
<xsl:for-each select="sdk:add-on[sdk:name-id='google_apis']">
|
2012-11-07 20:10:39 +00:00
|
|
|
google_apis_<xsl:value-of select="sdk:api-level" /> = buildGoogleApis {
|
|
|
|
name = "<xsl:value-of select="sdk:name-id" />-<xsl:value-of select="sdk:api-level" />";
|
|
|
|
src = fetchurl {
|
2015-10-06 13:27:49 +01:00
|
|
|
url = https://dl.google.com/android/repository/<xsl:value-of select="sdk:archives/sdk:archive/sdk:url" />;
|
2014-09-02 18:18:30 +01:00
|
|
|
sha1 = "<xsl:value-of select="sdk:archives/sdk:archive/sdk:checksum[@type='sha1']" />";
|
2012-11-07 20:10:39 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
description = "<xsl:value-of select="sdk:description" />";
|
2015-05-02 14:15:29 +01:00
|
|
|
<xsl:for-each select="sdk:desc-url"> url = <xsl:value-of select="." />;</xsl:for-each>
|
2012-11-07 20:10:39 +00:00
|
|
|
};
|
|
|
|
};
|
2015-05-02 14:15:29 +01:00
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
<xsl:for-each select="sdk:extra[sdk:path='support']">
|
|
|
|
android_support_extra = buildGoogleApis {
|
|
|
|
name = "android_support_extra";
|
|
|
|
src = fetchurl {
|
2015-10-06 13:27:49 +01:00
|
|
|
url = https://dl.google.com/android/repository/<xsl:value-of select="sdk:archives/sdk:archive/sdk:url"/>;
|
2015-05-02 14:15:29 +01:00
|
|
|
sha1 = "<xsl:value-of select="sdk:archives/sdk:archive/sdk:checksum[@type='sha1']" />";
|
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
description = "Android Support Library";
|
|
|
|
url = http://developer.android.com/;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</xsl:for-each><xsl:for-each select="sdk:extra[sdk:path='google_play_services']">
|
|
|
|
google_play_services = buildGoogleApis {
|
|
|
|
name = "google_play_services";
|
|
|
|
src = fetchurl {
|
2015-10-06 13:27:49 +01:00
|
|
|
url = https://dl.google.com/android/repository/<xsl:value-of select="sdk:archives/sdk:archive/sdk:url"/>;
|
2015-05-02 14:15:29 +01:00
|
|
|
sha1 = "<xsl:value-of select="sdk:archives/sdk:archive/sdk:checksum[@type='sha1']" />";
|
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
description = "Google Play services client library and sample code";
|
|
|
|
url = http://developer.android.com/;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</xsl:for-each>
|
2012-11-07 20:10:39 +00:00
|
|
|
}
|
2015-05-02 14:15:29 +01:00
|
|
|
</xsl:template>
|
2012-11-07 20:10:39 +00:00
|
|
|
|
|
|
|
</xsl:stylesheet>
|