rustRegistry: Convert fetchgit to fetchFromGitHub and update
This commit is contained in:
parent
3df7a9866d
commit
586444c91d
@ -4,21 +4,23 @@
|
|||||||
# version that we define here. If you're having problems downloading / finding
|
# version that we define here. If you're having problems downloading / finding
|
||||||
# a Rust library, try updating this to a newer commit.
|
# a Rust library, try updating this to a newer commit.
|
||||||
|
|
||||||
{ runCommand, fetchgit, git }:
|
{ runCommand, fetchFromGitHub, git }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2015-05-12";
|
version = "2015-05-13";
|
||||||
|
rev = "8d879d4e998db3c1fad106503638d318e10fdba6";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = git://github.com/rust-lang/crates.io-index.git;
|
inherit rev;
|
||||||
|
|
||||||
rev = "9bf9e7f2b242552ccec879b47b2225a76c7c79b0";
|
owner = "rust-lang";
|
||||||
sha256 = "14rrpm6and52qasn7fv5fkflhnkyr86xy0k9pjgw407k7xms0cmw";
|
repo = "crates.io-index";
|
||||||
|
sha256 = "1100vcgxy3ddl1ih3ljd3nig4a2k44ajhawsql1lmcj9783aykav";
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
runCommand "rustRegistry-${version}-${builtins.substring 0 7 src.rev}" {} ''
|
runCommand "rustRegistry-${version}-${builtins.substring 0 7 rev}" {} ''
|
||||||
# For some reason, cargo doesn't like fetchgit's git repositories, not even
|
# For some reason, cargo doesn't like fetchgit's git repositories, not even
|
||||||
# if we set leaveDotGit to true, set the fetchgit branch to 'master' and clone
|
# if we set leaveDotGit to true, set the fetchgit branch to 'master' and clone
|
||||||
# the repository (tested with registry rev
|
# the repository (tested with registry rev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user