nixpkgs/pkgs/development/compilers/rust
Benjamin Hipple 2115a2037c fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir
This has several advantages:

1. It takes up less space on disk in-between builds in the nix store.
2. It uses less space in the binary cache for vendor derivation packages.
3. It uses less network traffic downloading from the binary cache.
4. It plays nicely with hashed mirrors like tarballs.nixos.org, which only
   substitute --flat hashes on single files (not recursive directory hashes).
5. It's consistent with how simple `fetchurl` src derivations work.
6. It provides a stronger abstraction between input src-package and output
   package, e.g., it's harder to accidentally depend on the src derivation at
   runtime by referencing something like `${src}/etc/index.html`. Likewise, in
   the store it's harder to get confused with something that is just there as a
   build-time dependency vs. a runtime dependency, since the build-time
   src dependencies are tarred up.

Disadvantages are:
1. It takes slightly longer to untar at the start of a build.

As currently implemented, this attaches the compacted vendor.tar.gz feature as a
rider on `verifyCargoDeps`, since both of them are relatively newly implemented
behavior that change the `cargoSha256`.

If this PR is accepted, I will push forward the remaining rust packages with a
series of treewide PRs to update the `cargoSha256`s.
2020-02-10 10:17:29 -05:00
..
rls treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
1_38_0.nix rustPackages: make rustc-dev optional 2020-01-18 10:57:13 +01:00
1_41_0.nix rustc: 1.40.0 -> 1.41.0 2020-02-09 09:20:07 +01:00
binary.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
bootstrap.nix rust: add support for armv6l-linux and armv7l-linux 2019-11-23 19:19:31 -05:00
cargo.nix cargo: switch to python3 2019-12-15 13:52:40 +01:00
clippy.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
default.nix fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
print-hashes.sh rust: add support for armv6l-linux and armv7l-linux 2019-11-23 19:19:31 -05:00
rust-src.nix rust-src: shrink the size 2019-11-01 23:02:34 +08:00
rustc.nix rustPackages: make rustc-dev optional 2020-01-18 10:57:13 +01:00
rustfmt.nix treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
setup-hook.sh rust: Allow IN_NIX_SHELL to be undefined 2019-11-01 14:45:59 -04:00