nixpkgs/pkgs/applications/version-management/git-repo/default.nix

24 lines
695 B
Nix
Raw Normal View History

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