1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 22:20:59 +01:00
nix/src/libstore-c
John Ericson 1c10ce6047 libstore-c: Add new derivation and store path functions
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>
2025-11-25 13:18:10 -05:00
..
nix_api_store libstore-c: Add new derivation and store path functions 2025-11-25 13:18:10 -05:00
.version Mesonify other external API 2024-07-02 09:23:24 -04:00
meson.build libstore-c: Organize API into separate headers 2025-11-17 12:23:57 -05:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_store.cc libstore-c: Add new derivation and store path functions 2025-11-25 13:18:10 -05:00
nix_api_store.h libstore-c: Add new derivation and store path functions 2025-11-25 13:18:10 -05:00
nix_api_store_internal.h Add new C API for working with derivations 2025-09-16 13:25:36 -04:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00