rustRegistry: 2015-04-23 -> 2015-05-12

This commit is contained in:
Ricardo M. Correia 2015-05-12 14:27:47 +02:00
parent 4c77830a93
commit 548e8db249

View File

@ -7,24 +7,21 @@
{ runCommand, fetchgit, git }: { runCommand, fetchgit, git }:
let let
version = "2015-04-23"; version = "2015-05-12";
src = fetchgit { src = fetchgit {
url = git://github.com/rust-lang/crates.io-index.git; url = git://github.com/rust-lang/crates.io-index.git;
rev = "965b634156cc5c6f10c7a458392bfd6f27436e7e"; rev = "9bf9e7f2b242552ccec879b47b2225a76c7c79b0";
sha256 = "1hbl3g1d6yz6x2fm76dxmcn8rdrmri4l9n6flvv0pkn4hsid7zw1"; sha256 = "14rrpm6and52qasn7fv5fkflhnkyr86xy0k9pjgw407k7xms0cmw";
# cargo needs the 'master' branch to exist
leaveDotGit = true;
branchName = "master";
}; };
in in
runCommand "rustRegistry-${version}-${builtins.substring 0 7 src.rev}" {} '' runCommand "rustRegistry-${version}-${builtins.substring 0 7 src.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 clone them (tested with registry rev # if we set leaveDotGit to true, set the fetchgit branch to 'master' and clone
# the repository (tested with registry rev
# 965b634156cc5c6f10c7a458392bfd6f27436e7e), failing with the message: # 965b634156cc5c6f10c7a458392bfd6f27436e7e), failing with the message:
# #
# "Target OID for the reference doesn't exist on the repository" # "Target OID for the reference doesn't exist on the repository"