nixpkgs/pkgs/build-support/rust
Alyssa Ross cd6818baf7
rustPlatform: forward unpack hooks to cargo fetch
Sometimes it's more ergonomic to set up the build environment in
hooks, to add to the default behaviour rather than replacing it.  It's
very surprising that the fetcher works fine with a custom unpackPhase,
but not with custom preUnpack or postUnpack.

Packages that use preUnpack or postUnpack and Cargo FODs seem to be
very rare.  I searched Nixpkgs for files containing one of
"cargoHash", "cargoDeps", and "cargoSha256", and one of "preUnpack" or
"postUnpack", and only found two such packages:
python3.pkgs.tokenizers and rustdesk.  Neither of their Cargo FOD
hashes are affected by this change.  So if that's any indication,
we're unlikely to be breaking many out-of-tree hashes with these
changes either.
2023-03-14 00:26:11 +00:00
..
build-rust-crate buildRustCrate: add libiconv to nativeBuildInputs on darwin 2023-03-08 14:39:25 -06:00
build-rust-package rustPlatform: forward unpack hooks to cargo fetch 2023-03-14 00:26:11 +00:00
fetch-cargo-tarball cargo: move cert info to fetch-cargo-tarball 2023-02-01 06:53:43 +10:00
hooks rustPlatform.cargoSetupHook: improve cargoHash instructions 2023-02-14 16:14:08 -05:00
lib build-support/rust/lib: Add toTargetVendor 2023-02-15 20:37:45 -05:00
sysroot build-support/rust/sysroot/src: Use dont* instead of phase list 2021-11-08 21:38:58 +00:00
test/import-cargo-lock rustPlatform.importCargoLock: add support for v1 lock files 2023-02-26 00:45:40 -05:00
default-crate-overrides.nix default-crate-overrides.nix: add graphene-sys 2023-01-13 16:43:39 +00:00
fetchcargo-default-config.toml
fetchcrate.nix fetchCrate: rewrite in terms of fetchzip 2022-11-03 12:33:27 -04:00
import-cargo-lock.nix rustPlatform.importCargoLock: passthru lockFile 2023-02-26 00:46:36 -05:00