mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
23 lines
694 B
Nix
23 lines
694 B
Nix
{ stdenv, fetchurl, python }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "git-repo-1.20";
|
|
src = fetchurl {
|
|
# I could not find a versioned url for the 1.20 version. In case
|
|
# the sha mismatches, check the homepage for new version and sha.
|
|
url = "http://commondatastorage.googleapis.com/git-repo-downloads/repo";
|
|
sha1 = "e197cb48ff4ddda4d11f23940d316e323b29671c";
|
|
};
|
|
|
|
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";
|
|
};
|
|
} |