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: fix build by deferring submodule fetching #6613

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 21, 2024

  1. nix: fix build by deferring submodule fetching

    Currently, it isn't possible to fetch submodules on `inputs.self` of a
    Nix flake. As a workaround, use `builtins.fetchGit` with `self.rev` of
    the current checkout to include submodules.
    
    This implementation defers submodule fetching to build time instead of
    before the flake evaluation begins, which would be the case if it were
    possible to specify submodule fetching in the `inputs` of `self` as with
    other inputs. This way, when interacting with the other outputs of the
    flake, the cost of fetching submodules is avoided.
    nrdxp committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    846fcd3 View commit details
    Browse the repository at this point in the history