nixpkgs/pkgs/build-support/rust
Yurii Rashkovskii e1aecec4cd
build-support/rust: make use of abandoned cargoUpdateHook
Previously, cargoUpdateHook was meaningful as it was used
in
[`cargo-fetch-deps`](19d3cf81d3/pkgs/build-support/rust/fetch-cargo-deps (L71)).

However, this entire file was removed in
5f8cf0048e. As far as I can
tell, nothing in the code is using it, but it is still
being passed around:
https://github.com/NixOS/nixpkgs/search?q=cargoUpdateHook&type=Code&utf8=%E2%9C%93

There are, however, legitimate use cases for it. For example,
in some software, some dependencies are not locked in Cargo.toml
and this causes Cargo to try fetching another version of them.
This doesn't work well with vendoring crates.

This hook allows to inject patching or whatever necessary workarounds
in the crate vendoring process. I suppose that's what it was for
in there in the first place.

This patch restores this hook and makes it usable again.
2018-02-23 11:17:03 +07:00
..
cargo-vendor cargo-vendor: Build from source using carnix 2018-01-18 20:44:42 +09:00
patch-registry-deps buildRustPackage: don't hardcode /nix/store, use $NIX_STORE 2016-01-12 13:45:11 -05:00
build-rust-crate.nix BuildRustCrate: more general overrides, and handling the "dylib" crate type (#35171) 2018-02-20 08:55:04 +01:00
carnix.nix BuildRustCrate: more general overrides, and handling the "dylib" crate type (#35171) 2018-02-20 08:55:04 +01:00
default-crate-overrides.nix defaultCrateOverrides: add pq-sys 2018-02-10 06:59:56 -06:00
default.nix rust: 1.22.1 -> 1.24.0 2018-02-20 09:59:26 +00:00
fetchcargo.nix build-support/rust: make use of abandoned cargoUpdateHook 2018-02-23 11:17:03 +07:00
fetchcrate.nix add fetchCrate function to fetch rust crates 2017-12-12 04:58:45 -06:00