rust: store the cargo-vendor config

cargo-vendor generates almost the right cargo config. Store it with the
vendored files and patch it on use.

This allows to re-use the generated config when using git dependencies.
This commit is contained in:
zimbatm
2017-10-23 16:13:08 +00:00
committed by Robin Gloster
parent c5456dbfec
commit 0af2c5891b
4 changed files with 20 additions and 20 deletions

View File

@@ -32,7 +32,7 @@ rec {
cargo = callPackage ./cargo.nix rec {
version = "0.23.0";
srcSha = "14b2n1msxma19ydchj54hd7f2zdsr524fg133dkmdn7j65f1x6aj";
cargoSha256 = "1sj59z0w172qvjwg1ma5fr5am9dgw27086xwdnrvlrk4hffcr7y7";
cargoSha256 = "1mcqv45l0d1gw8v3v48gm1902xckj6r0s8l1z46nbmrsjs34rzhx";
inherit rustc; # the rustc that will be wrapped by cargo
inherit rustPlatform; # used to build cargo