nixpkgs/pkgs
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
..
applications fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
build-support fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
common-updater common-updater-scripts: move destructive changes further in the script 2020-02-04 06:25:38 +01:00
data osinfo-db: 20191125 -> 20200203 2020-02-09 12:10:19 +01:00
desktops cinnamon.cinnamon-translations: 4.4.0 -> 4.4.2 2020-02-08 01:45:06 +00:00
development fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
games dwarf-fortress-packages.unfuck: 0.47.01 -> 0.47.02 release 2020-02-09 17:46:19 -08:00
misc Merge pull request #79474 from ashkitten/update-dolphin 2020-02-09 09:05:01 -05:00
os-specific intel-compute-runtime: 19.44.14658 -> 20.02.15268 2020-02-09 09:48:10 +01:00
servers Merge master into staging-next 2020-02-10 12:55:47 +01:00
shells Revert "Revert "Merge master into staging-next"" 2020-02-05 19:41:25 +01:00
stdenv Merge master into staging-next 2020-02-09 09:17:51 +01:00
test tests.nixos-functions: port test to python 2020-02-09 23:53:58 +01:00
tools fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
top-level Merge master into staging-next 2020-02-10 12:55:47 +01:00