libstore-c: Add new derivation and store path functions#14555
Merged
Ericson2314 merged 2 commits intomasterfrom Nov 25, 2025
Merged
libstore-c: Add new derivation and store path functions#14555Ericson2314 merged 2 commits intomasterfrom
Ericson2314 merged 2 commits intomasterfrom
Conversation
64ac27b to
601f966
Compare
601f966 to
58acb5e
Compare
91bb0a1 to
20347d7
Compare
Member
Author
|
OK I moved some of the new stuff in to https://github.com/NixOS/nix/tree/more-store-ffi-2 so this is smaller in scope. |
20347d7 to
a568edd
Compare
a568edd to
5831567
Compare
|
🎉 All dependencies have been resolved ! |
xokdvium
reviewed
Nov 24, 2025
xokdvium
reviewed
Nov 24, 2025
xokdvium
reviewed
Nov 24, 2025
xokdvium
reviewed
Nov 24, 2025
5958027 to
129b910
Compare
xokdvium
reviewed
Nov 24, 2025
129b910 to
7526ff7
Compare
5781e50 to
eb20cde
Compare
Per https://en.cppreference.com/w/cpp/memory/new/operator_new.html, it can throw if the allocation fails.
80ed125 to
8ed9fbd
Compare
8ed9fbd to
d06f221
Compare
Add several new functions to the C API: StorePath operations: - nix_store_path_hash: Extract the hash part from a store path - nix_store_create_from_parts: Construct a store path from hash and name Derivation operations: - nix_derivation_clone: Clone a derivation - nix_derivation_to_json: Serialize a derivation to JSON Store operations: - nix_store_drv_from_store_path: Load a derivation from a store path Test the new functions, and improve documentation of some existing functions to better distinguish them, also. Co-authored-by: Tristan Ross <tristan.ross@determinate.systems> Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
d06f221 to
1c10ce6
Compare
Merged
This was referenced Dec 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Trying out new and improved FFI with new and improved bindings + Harmonia.
Context
Rebase of #14031
Depends on #14560
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.