nixpkgs/pkgs/development
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
..
arduino
compilers rustcMaster: Update from 2015-04-13 -> 2015-04-15 2015-04-21 19:46:28 +02:00
coq-modules bedrock: Don't bulid Cito without the platform 2015-04-10 14:13:54 -05:00
eclipse
go-modules/generic pond: fix build by renaming imports, also add renameImports to goBuildPackage 2015-04-16 18:43:37 +02:00
guile-modules
haskell-modules hackage-packages.nix: re-generate from Hackage state 12d6257d3e 2015-04-21 14:16:20 +02:00
interpreters consolidate php builds 2015-04-18 03:46:48 -07:00
libraries nss: Update to 3.18.1 2015-04-21 16:53:43 +02:00
lisp-modules Add md5 Lisp package 2015-04-15 02:48:54 +03:00
lua-modules
misc
mobile
ocaml-modules ocaml-pgocaml: update from 2.1 to 2.2 2015-04-10 17:45:37 +02:00
perl-modules
pharo Update pharo-vm to add missing PharoV40.sources 2015-04-17 15:52:07 +02:00
pure-modules/pure-gsl
python-modules python-wrapper: Handle strings at the beginning. 2015-04-14 07:13:15 +02:00
qtcreator
r-modules r-modules: disable broken builds on Hydra 2015-04-20 17:38:46 +02:00
ruby-modules
tools buildRustPackage: Fix Cargo.lock being ignored 2015-04-23 02:58:07 +02:00
web node: set interpreterName for 0.10 2015-04-16 12:43:04 -04:00