mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
C API: (breaking) remove nix-flake-c global init
This commit is contained in:
parent
3c4c0953e0
commit
6a192ec0cd
12 changed files with 124 additions and 69 deletions
|
@ -25,13 +25,13 @@ TEST_F(nix_api_store_test, nix_api_init_global_getFlake_exists)
|
|||
assert_ctx_ok();
|
||||
ASSERT_NE(nullptr, settings);
|
||||
|
||||
nix_flake_init_global(ctx, settings);
|
||||
assert_ctx_ok();
|
||||
|
||||
nix_eval_state_builder * builder = nix_eval_state_builder_new(ctx, store);
|
||||
ASSERT_NE(nullptr, builder);
|
||||
assert_ctx_ok();
|
||||
|
||||
nix_flake_settings_add_to_eval_state_builder(ctx, settings, builder);
|
||||
assert_ctx_ok();
|
||||
|
||||
auto state = nix_eval_state_build(ctx, builder);
|
||||
assert_ctx_ok();
|
||||
ASSERT_NE(nullptr, state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue