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: Add libflake-c #11940

Merged
merged 6 commits into from
Nov 25, 2024
Merged

C API: Add libflake-c #11940

merged 6 commits into from
Nov 25, 2024

Conversation

roberth
Copy link
Member

@roberth roberth commented Nov 23, 2024

Motivation

Nix 2.24's C API is currently incapable of providing flake functionality, because libflake wasn't wrapped before #9063

This PR provides a very basic libflake that restores builtins.getFlake. (a feature compensating for a regression)

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@roberth roberth added feature Feature request or proposal regression Something doesn't work anymore c api Nix as a C library with a stable interface backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch labels Nov 23, 2024
@roberth roberth requested a review from edolstra as a code owner November 23, 2024 10:56
@roberth roberth force-pushed the c-api-libflake branch 2 times, most recently from 56a66f6 to bdf0c8b Compare November 24, 2024 09:43
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Nov 24, 2024
@roberth roberth merged commit 46b0f77 into master Nov 25, 2024
17 checks passed
@roberth roberth deleted the c-api-libflake branch November 25, 2024 09:00
@roberth roberth added backport 2.25-maintenance Automatically creates a PR against the branch and removed backport 2.25-maintenance Automatically creates a PR against the branch labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch c api Nix as a C library with a stable interface feature Feature request or proposal regression Something doesn't work anymore with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getFlake not available through C API
3 participants