Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust: hooks: fix cross compilation #247442

Merged
merged 5 commits into from Sep 26, 2023
Merged

rust: hooks: fix cross compilation #247442

merged 5 commits into from Sep 26, 2023

Commits on Sep 25, 2023

  1. rust: add rust.envVars

    Adam Joseph committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    cf87bba View commit details
    Browse the repository at this point in the history
  2. 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
    Adam Joseph committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    a9ebacd View commit details
    Browse the repository at this point in the history
  3. libdovi: use rust.envVars for cargo-c

    Adam Joseph committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    d5355dd View commit details
    Browse the repository at this point in the history
  4. libimagequant: use rust.envVars for cargo-c

    Adam Joseph committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    2d7807f View commit details
    Browse the repository at this point in the history
  5. rav1e: use rust.envVars

    Adam Joseph committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    8f1b440 View commit details
    Browse the repository at this point in the history