2013-12-25 23:44:16 +00:00
|
|
|
{ stdenv, fetchurl, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-11-02 00:28:25 +00:00
|
|
|
name = "git-repo-1.21";
|
2013-12-25 23:44:16 +00:00
|
|
|
src = fetchurl {
|
2014-11-02 00:28:25 +00:00
|
|
|
# I could not find a versioned url for the 1.21 version. In case
|
2013-12-26 00:01:01 +00:00
|
|
|
# the sha mismatches, check the homepage for new version and sha.
|
|
|
|
url = "http://commondatastorage.googleapis.com/git-repo-downloads/repo";
|
2014-11-02 00:28:25 +00:00
|
|
|
sha1 = "b8bd1804f432ecf1bab730949c82b93b0fc5fede";
|
2013-12-25 23:44:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2013-12-26 00:01:01 +00:00
|
|
|
sed -e 's,!/usr/bin/env python,!${python}/bin/python,' < $src > $out/bin/repo
|
|
|
|
chmod +x $out/bin/repo
|
2013-12-25 23:44:16 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://source.android.com/source/downloading.html";
|
|
|
|
description = "Android's repo management tool";
|
|
|
|
};
|
|
|
|
}
|