1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-07 17:41:00 +01:00

C API: (breaking) remove nix-flake-c global init

This commit is contained in:
Robert Hensing 2025-03-26 08:59:05 +00:00
parent 3c4c0953e0
commit 6a192ec0cd
12 changed files with 124 additions and 69 deletions

View file

@ -1,7 +1,13 @@
#include "flake/settings.hh"
#include "flake/flake-primops.hh"
namespace nix::flake {
Settings::Settings() {}
void Settings::configureEvalSettings(nix::EvalSettings & evalSettings)
{
evalSettings.addPrimOp(primops::getFlake(*this));
}
} // namespace nix