store: add Store method wrappers for hydra#58
Open
amaanq wants to merge 2 commits into
Open
Conversation
…vation_from_path store: fix aarch64 build — use c_char instead of i8 for FFI pointer cast
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.
Summary
This PR wraps several Nix C API store functions for future use in hydra's queue-runner.
is_valid_path: checks if a store path existscopy_path/copy_closure: copy a single path or a full closure between storesquery_path_from_hash_part: look up a store path by its hash prefixget_version: get the store protocol version stringderivation_from_path: parse a .drv file into its components