Files
nixpkgs/pkgs/development/tools
Ricardo M. Correia e42c17ee97 buildRustPackage: Fix Cargo.lock being ignored
It turns out that `cargo`, with respect to registry dependencies, was
ignoring the package versions locked in `Cargo.lock` because we changed
the registry index URL.

Therefore, every time `rustRegistry` would be updated, we'd always try
to use the latest version available for every dependency and as a result
the deps' SHA256 hashes would almost always have to be changed.

To fix this, now we do a string substitution in `Cargo.lock` of the
`crates.io` registry URL with our URL. This should be safe because our
registry is just a copy of the `crates.io` registry at a certain point
in time.

Since now we don't always use the latest version of every dependency,
the build of `cargo` actually started to fail because two of the
dependencies specified in its `Cargo.lock` file have build failures.

To fix the latter problem, I've added a `cargoUpdateHook` variable that
gets ran both when fetching dependencies and just before building the
program. The purpose of `cargoUpdateHook` is to do any ad-hoc updating
of dependencies necessary to get the package to build. The use of the
'--precise' flag is needed so that cargo doesn't try to fetch an even
newer version whenever `rustRegistry` is updated (and therefore have to
change depsSha256 as a consequence).
2015-04-23 02:58:07 +02:00
..
2015-03-18 14:17:25 +01:00
2015-01-19 15:43:25 +01:00
2015-02-05 11:54:19 +01:00
2015-01-28 16:02:46 +01:00
2015-01-22 20:58:30 +01:00
2015-01-13 22:33:49 +01:00
2015-04-20 18:56:43 +03:00
2014-11-10 01:04:19 +00:00
2014-10-09 12:00:34 -05:00
2015-04-19 02:13:30 +02:00
2015-03-22 16:33:15 -04:00
2015-02-02 23:55:17 -08:00
2015-04-02 16:27:52 -05:00
2014-11-09 12:05:44 +00:00
2014-11-12 16:03:00 +01:00
2015-03-06 15:11:41 +01:00
2014-05-31 15:49:13 +02:00
2015-02-01 18:41:32 +03:00
2015-01-13 21:48:44 -05:00
2014-11-12 23:16:42 +01:00