mirror of
https://github.com/NixOS/nix.git
synced 2025-12-08 10:01:01 +01:00
* It is tough to contribute to a project that doesn't use a formatter, * It is extra hard to contribute to a project which has configured the formatter, but ignores it for some files * Code formatting makes it harder to hide obscure / weird bugs by accident or on purpose, Let's rip the bandaid off? Note that PRs currently in flight should be able to be merged relatively easily by applying `clang-format` to their tip prior to merge.
15 lines
438 B
C++
15 lines
438 B
C++
#include "nix/flake/settings.hh"
|
|
#include "nix/flake/flake-primops.hh"
|
|
|
|
namespace nix::flake {
|
|
|
|
Settings::Settings() {}
|
|
|
|
void Settings::configureEvalSettings(nix::EvalSettings & evalSettings) const
|
|
{
|
|
evalSettings.extraPrimOps.emplace_back(primops::getFlake(*this));
|
|
evalSettings.extraPrimOps.emplace_back(primops::parseFlakeRef);
|
|
evalSettings.extraPrimOps.emplace_back(primops::flakeRefToString);
|
|
}
|
|
|
|
} // namespace nix::flake
|