3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/git-repo/default.nix
2015-09-16 19:13:27 +02:00

24 lines
695 B
Nix

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