Nix 2.28.2
Nix, the purely functional package manager: C API (experimental)
 
Loading...
Searching...
No Matches
libflake

Bindings to the Nix Flakes library. More...

Files

file  nix_api_flake.h
 Main entry for the libflake C bindings.
 

Typedefs

typedef struct nix_flake_settings nix_flake_settings
 

Functions

nix_flake_settings * nix_flake_settings_new (nix_c_context *context)
 
void nix_flake_settings_free (nix_flake_settings *settings)
 Release the resources associated with a nix_flake_settings.
 
nix_err nix_flake_settings_add_to_eval_state_builder (nix_c_context *context, nix_flake_settings *settings, nix_eval_state_builder *builder)
 Initialize a nix_flake_settings to contain builtins.getFlake and potentially more.
 

Detailed Description

Bindings to the Nix Flakes library.

Function Documentation

◆ nix_flake_settings_add_to_eval_state_builder()

nix_err nix_flake_settings_add_to_eval_state_builder ( nix_c_context * context,
nix_flake_settings * settings,
nix_eval_state_builder * builder )

Initialize a nix_flake_settings to contain builtins.getFlake and potentially more.

Parameters
[out]contextOptional, stores error information
[in]settingsThe settings to use for e.g. builtins.getFlake
[in]builderThe builder to modify

◆ nix_flake_settings_new()

nix_flake_settings * nix_flake_settings_new ( nix_c_context * context)

Create a nix_flake_settings initialized with default values.

Parameters
[out]contextOptional, stores error information
Returns
A new nix_flake_settings or NULL on failure.
See also
nix_flake_settings_free