Skip to content

C API: Add query_from_hash_part to Store API#14766

Merged
tomberek merged 1 commit intoNixOS:masterfrom
pkpbynum:capi/query-path-from-hash-part
Jan 20, 2026
Merged

C API: Add query_from_hash_part to Store API#14766
tomberek merged 1 commit intoNixOS:masterfrom
pkpbynum:capi/query-path-from-hash-part

Conversation

@pkpbynum
Copy link
Contributor

@pkpbynum pkpbynum commented Dec 10, 2025

Motivation

Along with nix_store_query_path_info from #14031, this API allows implementing a minimal HTTP Binary Cache (in the style of nix-serve) without forking so many commands.

Context

Is #14031 still active? It seems that it was partially merged with #14555, but that omitted nix_store_query_path_info.

Tested on my fork calling from Rust.


Add 👍 to pull requests you find important.

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

@pkpbynum pkpbynum requested a review from edolstra as a code owner December 10, 2025 16:24
@github-actions github-actions bot added the c api Nix as a C library with a stable interface label Dec 10, 2025
@xokdvium
Copy link
Contributor

Could use a release note.

@pkpbynum pkpbynum force-pushed the capi/query-path-from-hash-part branch from c01f9a0 to eaf474b Compare January 5, 2026 16:39
@pkpbynum
Copy link
Contributor Author

pkpbynum commented Jan 5, 2026

Could use a release note.

Added, lmk if that looks right. I left it open-ended so I could add #14768 and #14936 when/if they are merged.

@tomberek tomberek added this pull request to the merge queue Jan 20, 2026
Merged via the queue into NixOS:master with commit f429d8d Jan 20, 2026
14 checks passed
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 documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants