1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-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
..
arch
bazaar
bcompare
bitkeeper
blackbox
cvs
cvs-fast-export cvs_fast_export: 1.49 -> 1.50 2020-01-06 00:38:27 -08:00
cvs2svn
cvsps
dvc
fossil
gerrit
git-and-tools fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
git-backup
git-crecord
git-lfs
git-repo gitRepo: 1.13.9.3 -> 1.13.9.4 2020-02-09 19:13:13 +01:00
git-review
git-sizer
git-up
gitea gitea: 1.10.2 -> 1.10.3 2020-01-18 09:56:41 +01:00
gitinspector
gitkraken gitkraken: 6.4.1 -> 6.5.1 2020-01-31 14:25:57 -05:00
gitlab gitlab: 12.7.4 -> 12.7.5 2020-02-01 17:07:55 +01:00
gitless gitless: use python3 2019-12-30 09:45:37 +01:00
gitolite gitolite: wrap gitolite-shell 2019-12-08 12:26:02 +01:00
gitstats
gogs gogs: 0.11.86 -> 0.11.91, fixes CVE-2019-14544 2020-02-06 07:49:01 +01:00
gource
guitone
meld
mercurial mercurial: 5.2.1 -> 5.2.2 2020-01-22 03:12:23 +00:00
monotone
monotone-viz
mr treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
nbstripout nbstripout: fix build 2019-12-30 16:46:55 +01:00
nitpick
p4v
peru
pijul pijul: Fix the build (broke due to a more recent Rust version) 2020-02-04 14:05:02 +01:00
rabbitvcs
rapidsvn
rcs treewide: NIX_*_COMPILE -> string 2019-12-31 00:13:29 +01:00
redmine treewide: fix redirected urls 2020-01-22 11:26:22 +01:00
reposurgeon
sit
smartgithg treewide: fix redirected urls 2020-01-22 11:26:22 +01:00
sourcehut
src
srcml
sublime-merge
subversion
tailor
tkcvs
tortoisehg tortoisehg: 5.0.2 -> 5.2.1 2019-12-22 10:04:31 +00:00
vcprompt
vcsh
yadm yadm: 2.0.1 -> 2.3.0 2019-12-24 15:57:36 -08:00