support conditional compilation of Nix C APIs

This commit is contained in:
do butterflies cry? 2026-03-27 10:38:56 +10:00
parent 7756365941
commit 1e23515fc1
Signed by: cry
GPG key ID: F68745A836CA0412
12 changed files with 198 additions and 63 deletions

View file

@ -0,0 +1,10 @@
// Nix C API for the Nix expressions evaluator.
#include <nix_api_expr.h>
// Nix C API for value manipulation.
//
#include <nix_api_value.h>
// Nix C API for external values.
//
#include <nix_api_external.h>

View file

@ -0,0 +1,3 @@
// Nix C API for fetcher operations.
//
#include <nix_api_fetchers.h>

View file

@ -0,0 +1,3 @@
// Nix C API for flake support.
//
#include <nix_api_flake.h>

View file

@ -0,0 +1,3 @@
// Nix C API for CLI support.
//
#include <nix_api_main.h>

View file

@ -0,0 +1,3 @@
// Nix C API for store operations.
//
#include <nix_api_store.h>

View file

@ -0,0 +1,7 @@
// Nix C API for utilities.
//
// Most notably containing functions for handling
// the `nix_c_context` structure, which is used throughout
// the Nix C APIs for error handling.
//
#include <nix_api_util.h>

View file

@ -1,23 +0,0 @@
// Pure C API for store operations
#include <nix_api_store.h>
// Pure C API for error handling
#include <nix_api_util.h>
// Pure C API for the Nix evaluator
#include <nix_api_expr.h>
// Pure C API for external values
#include <nix_api_external.h>
// Pure C API for value manipulation
#include <nix_api_value.h>
// Pure C API for fetcher operations
#include <nix_api_fetchers.h>
// Pure C API for flake support
#include <nix_api_flake.h>
// Pure C API for main/CLI support
#include <nix_api_main.h>