nixpkgs-suyu/pkgs/development/tools/build-managers
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
..
apache-ant Add coreutils dependency to ant launcher script 2014-09-17 03:54:25 +01:00
apache-maven maven: 3.2.3 -> 3.2.5 2015-01-21 22:01:15 +01:00
bam Turn more licenses into lib.licenses style 2014-11-06 00:48:16 +00:00
bazel Dohh 2015-03-26 09:48:27 +00:00
boot Clojure: boot: Add new derivation for boot build tooling 2015-01-30 09:33:55 +00:00
buildbot buildbot{,-slave}: update 0.8.8 -> 0.8.10 2014-12-09 19:14:03 +01:00
buildbot-slave buildbot{,-slave}: update 0.8.8 -> 0.8.10 2014-12-09 19:14:03 +01:00
cargo buildRustPackage: Fix Cargo.lock being ignored 2015-04-23 02:58:07 +02:00
cmake fix the cmake 2.8.x detection of OpenSSL version broken in openssl 1.0.1m 2015-03-26 11:42:02 +01:00
colormake Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
dub dub update to v0.9.23 2015-04-14 10:46:16 -07:00
gnumake unmaintain a bunch of packages 2015-01-13 22:33:49 +01:00
gradle gradle: don't hardcode gradle-launcher-VERSION.jar 2015-02-27 12:08:03 +01:00
icmake icmake: update from 7.21.01 to 7.22.00 2015-01-21 13:21:59 +01:00
jam Turn more licenses into lib.licenses style 2014-11-06 00:48:16 +00:00
leiningen Leiningen: Fix GnuPG Support. 2015-02-07 18:45:35 +01:00
mk
ninja nixpkgs: ninja 1.5.1 -> 1.5.3 2015-03-17 20:29:46 -05:00
rebar Elixir and rebar aren't Linux-specific tools 2014-09-03 20:14:57 +01:00
remake
sbt sbt: bump to 0.13.8 2015-03-22 19:58:01 +01:00
scons Update SCons 2014-10-06 02:43:58 +04:00
tup Add tup 2015-01-14 01:37:44 -05:00