git-repo-1.20, update and pin python
This commit is contained in:
parent
46f627e8f7
commit
7a988c62af
@ -1,16 +1,19 @@
|
|||||||
{ stdenv, fetchurl, python }:
|
{ stdenv, fetchurl, python }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "git-repo-1.19";
|
name = "git-repo-1.20";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://git-repo.googlecode.com/files/repo-1.19";
|
# I could not find a versioned url for the 1.20 version. In case
|
||||||
sha1 = "e48d46e36194859fe8565e8cbdf4c5d1d8768ef3";
|
# the sha mismatches, check the homepage for new version and sha.
|
||||||
|
url = "http://commondatastorage.googleapis.com/git-repo-downloads/repo";
|
||||||
|
sha1 = "e197cb48ff4ddda4d11f23940d316e323b29671c";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackPhase = "true";
|
unpackPhase = "true";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install $src $out/bin/repo
|
sed -e 's,!/usr/bin/env python,!${python}/bin/python,' < $src > $out/bin/repo
|
||||||
|
chmod +x $out/bin/repo
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user