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

nix build: replace fetchCargoTarball with importCargoLock #31825

Merged
merged 1 commit into from
Mar 25, 2024

Commits on Mar 22, 2024

  1. nix build: replace fetchCargoTarball with importCargoLock

    [`importCargoLock`][1] allows us to use the existing Cargo.lock
    file. This means we no longer need to update the sha256 hash
    whenever the dependencies are upgraded. It also integrates
    with nix's rustToolchain support via `cargoSetupHooks` and
    automatically vendors the dependencies, allowing us to simplify
    the logic for `filterlock` derivation.
    
    [1]: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#vendoring-of-dependencies-vendoring-of-dependencies
    
    Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
    mukilan committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    b5191b5 View commit details
    Browse the repository at this point in the history