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

C API: Flakes, locking, override-input #10435

Open
roberth opened this issue Apr 8, 2024 · 0 comments
Open

C API: Flakes, locking, override-input #10435

roberth opened this issue Apr 8, 2024 · 0 comments
Labels
c api Nix as a C library with a stable interface feature Feature request or proposal
Milestone

Comments

@roberth
Copy link
Member

roberth commented Apr 8, 2024

Is your feature request related to a problem? Please describe.

Currently flakes are accessible via builtins.getFlake (when the flag is enabled of course), but functionality that is expected from any flakes-supporting CLI will include at least:

  • --override-input and
  • automatically updating the lock file despite pure mode.

Describe the solution you'd like

At least one of

  • A CLI oriented helper struct that performs these tasks and returns a struct with access to the outputs value and/or eval cache
  • A perhaps slightly more flexible/low level set of functions that manipulate the lock and can evaluate a flake with it
  • Both
    • a C function that returns a "locked" flake regardless of pure mode.
    • Nix-language support for overriding flake inputs

Additional context

#8699

Priorities

Add 👍 to issues you find important.

@roberth roberth added feature Feature request or proposal c api Nix as a C library with a stable interface labels Apr 8, 2024
@roberth roberth added this to the Stable C API milestone Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c api Nix as a C library with a stable interface feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

1 participant