nixpkgs/pkgs/applications/version-management/git-repo/default.nix
Adam Bouhenguel 8e09c97d1c Bump git-repo to 1.21
Still no versioned URL, but there’s been a new release. SHA1 pulled
from http://source.android.com/source/downloading.html#installing-repo.
2014-11-01 17:28:25 -07:00

23 lines
694 B
Nix

{ stdenv, fetchurl, python }:
stdenv.mkDerivation {
name = "git-repo-1.21";
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 = "b8bd1804f432ecf1bab730949c82b93b0fc5fede";
};
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";
};
}