nixpkgs/pkgs/build-support/rust/hooks
Bob van der Linden e3a10a12c7 rustPlatform.cargoSetupHook: improve cargoHash instructions
Currently cargo-setup-hook instructs the builder upon cargoSha256 or
cargoHash being out-of-date compared to the Cargo.lock file.

The instructions can be simplified a bit, because nowadays it is fine to
keep a hash empty, instead of filling it with
`0000000000000000000000000000000000000000000000000000`.

Nix nowadays outputs SRI hashes, which should usually be placed in
`cargoHash` instead of `cargoSha256`, but the instructions are still
only referring to `cargoSha256`.

Lastly, the output of Nix doesn't include `got: sha256: ` anymore, as it
now outputs `got: sha256-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=`.
It would be nice to make it clear that the trailing `=` is important as
well, so the full example SRI hash is mentioned.
2023-02-14 16:14:08 -05:00
..
cargo-build-hook.sh rust/hooks: ensure the build output ends up in the right place 2021-12-26 11:04:07 +03:00
cargo-check-hook.sh rustPlatform: add support for features 2021-10-27 08:08:03 -04:00
cargo-install-hook.sh cargo/hooks: allow hooks to be disabled 2021-03-08 19:17:03 +01:00
cargo-nextest-hook.sh rustPlatform.cargoNextestHook: init 2022-11-28 16:59:52 -05:00
cargo-setup-hook.sh rustPlatform.cargoSetupHook: improve cargoHash instructions 2023-02-14 16:14:08 -05:00
default.nix treewide: makeSetupHook deps -> propagatedBuildInputs 2023-02-07 21:02:00 +02:00
maturin-build-hook.sh maturin: 0.12.9 -> 0.13.0 2022-07-21 22:35:32 +02:00
rust-bindgen-hook.sh rustPlatform.bindgenHook: init 2022-02-22 19:37:07 +01:00