produce libnixide-c bindings

This commit is contained in:
do butterflies cry? 2026-04-10 11:51:27 +10:00
parent 93d76c002e
commit 9f90e0c323
Signed by: cry
GPG key ID: F68745A836CA0412
7 changed files with 60 additions and 40 deletions

View file

@ -2,8 +2,8 @@
#define NIXIDE_EXPR
// Nix C API for the Nix expressions evaluator.
//
#include <nix_api_expr.h>
// #include <nix_api_expr_internal.h>
// Nix C API for value manipulation.
//
@ -13,4 +13,8 @@
//
#include <nix_api_external.h>
// Nixide C API extensions for the Nix expressions evaluator.
//
#include <nixide_api_expr.h>
#endif

View file

@ -1,10 +1,12 @@
#ifndef NIXIDE_FETCHERS
#define NIXIDE_FETCHERS
// #include <nix_api_fetchers_internal.hh>
// Nix C API for fetcher operations.
//
#include <nix_api_fetchers.h>
// Nixide C API extensions for fetcher operations.
//
#include <nixide_api_fetchers.h>
#endif

View file

@ -1,10 +1,12 @@
#ifndef NIXIDE_FLAKE
#define NIXIDE_FLAKE
// #include <nix_api_flake_internal.hh>
// Nix C API for flake support.
//
#include <nix_api_flake.h>
// Nixide C API extensions for flake support.
//
#include <nixide_api_flake.h>
#endif

View file

@ -5,4 +5,8 @@
//
#include <nix_api_main.h>
// Nixide C API extensions for CLI support.
//
#include <nixide_api_main.h>
#endif

View file

@ -4,9 +4,17 @@
// Nix C API for store operations.
//
#include <nix_api_store.h>
// #include <nix_api_store_internal.h>
// Nix C API for derivation operations that don't require a store.
//
#include <nix_api_store/derivation.h>
// Nix C API for store path operations that don't require a store.
//
#include <nix_api_store/store_path.h>
// Nixide C API extensions for store operations.
//
#include <nixide_api_store.h>
#endif

View file

@ -8,6 +8,9 @@
// the Nix C APIs for error handling.
//
#include <nix_api_util.h>
// #include <nix_api_util_internal.h>
// Nixide C API extensions for utilities.
//
#include <nixide_api_util.h>
#endif