nixpkgs/pkgs/tools/package-management
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
..
appimage-run
appimagekit
apt
apt-dater
bunny
cargo-about cargo-about: 0.1.1 -> 0.2.0 2020-01-28 13:05:27 -05:00
cargo-audit
cargo-deb cargo-deb: 1.23.0 -> 1.23.1 2020-01-09 15:32:11 +02:00
cargo-deps
cargo-download
cargo-edit cargo-edit: 0.4.2 -> 0.5.0 2020-02-06 20:43:53 +01:00
cargo-graph
cargo-license
cargo-outdated
cargo-release cargo-release: 0.12.4 -> 0.13.0 2020-01-02 22:12:03 +01:00
cargo-tree cargo-tree: 0.27.0 -> 0.28.0 2020-01-26 20:11:58 +01:00
cargo-update
cde
checkinstall
clib treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
conda
createrepo_c
disnix disnix: 0.9 -> 0.9.1 2020-01-08 22:12:16 +01:00
dpkg
elm-github-install
emplace emplace: 0.2.8 -> 0.2.10 (#76581) 2020-01-09 13:57:14 +01:00
fpm
gx
home-manager home-manager: 2019-11-17 -> 2020-01-04 2020-01-06 21:24:32 +01:00
librepo
morph morph: add openssh to PATH 2020-01-21 18:44:35 +01:00
mynewt-newt mynewt-newt: patch to fix failure running upgrade on mcuboot 2020-01-31 17:58:05 +00:00
nfpm nfpm: 1.1.8 -> 1.1.10 2020-01-19 20:20:20 -05:00
niff
nix Revert "nix: build using gcc8" 2020-01-05 20:42:44 +01:00
nix-bundle nix-bundle: 0.2.0 -> 0.3.0 2020-01-17 08:49:43 +00:00
nix-du fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
nix-index
nix-pin
nix-prefetch nix-prefetch: 0.1.0 -> 0.3.0 2020-01-16 17:17:00 +08:00
nix-prefetch-scripts
nix-serve
nix-top
nix-universal-prefetch
nix-update-source
nixops
nixpkgs-review
nixui
nox
opkg opkg: 0.4.1 -> 0.4.2 2020-01-06 19:59:32 -08:00
opkg-utils
packagekit packagekit: 1.1.12 -> 1.1.13 (#77498) 2020-01-18 08:34:18 -05:00
pacman pacman: fix script generation 2020-01-08 14:38:00 -05:00
protontricks protontricks: 1.3.1 -> 1.4 2020-01-27 19:41:58 -05:00
python2nix
reuse
rpm rpm: fix helper script paths 2020-01-18 15:59:30 -05:00
xbps xbps: 0.57.1 -> 0.58 2020-02-09 10:01:02 +01:00