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

Add builtins.fetchClosure #6302

Merged
merged 12 commits into from
Mar 24, 2022
Merged

Add builtins.fetchClosure #6302

merged 12 commits into from
Mar 24, 2022

Commits on Mar 24, 2022

  1. Add builtins.fetchClosure

    This allows closures to be imported at evaluation time, without
    requiring the user to configure substituters. E.g.
    
      builtins.fetchClosure {
        storePath = /nix/store/f89g6yi63m1ywfxj96whv5sxsm74w5ka-python3.9-sqlparse-0.4.2;
        from = "https://cache.ngi0.nixos.org";
      }
    edolstra committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    f4bafc4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4165941 View commit details
    Browse the repository at this point in the history
  3. Rename

    edolstra committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    7f6fe8c View commit details
    Browse the repository at this point in the history
  4. fetchClosure: Allow a path to be rewritten to CA on the fly

    The advantage is that the resulting closure doesn't need to be signed,
    so you don't need to configure any binary cache keys on the client.
    edolstra committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    545c2d0 View commit details
    Browse the repository at this point in the history
  5. Fix makeContentAddressed() on self-references

    LocalStore::addToStore() since
    79ae9e4 expects a regular NAR hash,
    rather than a NAR hash modulo self-references. Fixes NixOS#6300.
    
    Also, makeContentAddressed() now rewrites the entire closure (so 'nix
    store make-content-addressable' no longer needs '-r'). See NixOS#6301.
    edolstra committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    f186075 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5acaf13 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7ffda0a View commit details
    Browse the repository at this point in the history
  8. 1 Configuration menu
    Copy the full SHA
    4120930 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    28186b7 View commit details
    Browse the repository at this point in the history
  10. Document fetchClosure

    edolstra committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    98658ae View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e5f7029 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f902f3c View commit details
    Browse the repository at this point in the history