nixpkgs/pkgs/build-support/rust/hooks
Adam Joseph 67a4f828b4 rust: hooks: fix cross compilation
Currently there is a state of severe confusion in
pkgs/build-support/rust/hooks/ regarding host vs target; right now
there is only "host" defined, but whether it means "host" or
"target" seems to fluctuate.

This commit corrects that, ensuring that all variables come in all
three flavors (build, host, target) and are used consistently with
the nixpkgs convention.

This also fixes the cross-compilation of packages which use
`maturinBuildHook` -- hooks go in `nativeBuildInputs` and are
phase-shifted backwards by one platform, so they need to be careful
about distinguishing between build and host.

Closes #247441
2023-09-26 06:30:44 +00:00
..
cargo-build-hook.sh rust: hooks: fix cross compilation 2023-09-26 06:30:44 +00:00
cargo-check-hook.sh rust: hooks: fix cross compilation 2023-09-26 06:30:44 +00:00
cargo-install-hook.sh rust: hooks: fix cross compilation 2023-09-26 06:30:44 +00:00
cargo-nextest-hook.sh rust: hooks: fix cross compilation 2023-09-26 06:30:44 +00:00
cargo-setup-hook.sh Merge pull request #218472 from figsoda/cargo-setup 2023-03-03 19:40:55 -05:00
default.nix rust: hooks: fix cross compilation 2023-09-26 06:30:44 +00:00
maturin-build-hook.sh rust: hooks: fix cross compilation 2023-09-26 06:30:44 +00:00
rust-bindgen-hook.sh rustPlatform.bindgenHook: init 2022-02-22 19:37:07 +01:00