mirror of
https://github.com/NixOS/nix
synced 2024-09-19 10:50:24 -04:00
0feeab755a
They are not actually part of the store layer, but instead part of the Nix executable infra (libraries don't need plugins, executables do). This is part of a larger project of moving all of our legacy settings infra to libmain, and having the underlying libraries just have plain configuration structs detached from any settings infra / UI layer. Progress on #5638
17 lines
323 B
C++
17 lines
323 B
C++
#include "nix_api_store.h"
|
|
#include "nix_api_store_internal.h"
|
|
#include "nix_api_util.h"
|
|
#include "nix_api_util_internal.h"
|
|
|
|
#include "plugin.hh"
|
|
|
|
nix_err nix_init_plugins(nix_c_context * context)
|
|
{
|
|
if (context)
|
|
context->last_err_code = NIX_OK;
|
|
try {
|
|
nix::initPlugins();
|
|
}
|
|
NIXC_CATCH_ERRS
|
|
}
|