mirror of
https://github.com/NixOS/nix
synced 2025-06-29 19:03:16 +02:00
Config: Use nlohmann/json
This commit is contained in:
parent
b4ef3d7078
commit
acb99f03f9
5 changed files with 37 additions and 32 deletions
|
@ -9,6 +9,8 @@
|
|||
#include <dlfcn.h>
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
@ -160,9 +162,9 @@ template<> std::string BaseSetting<SandboxMode>::to_string() const
|
|||
else abort();
|
||||
}
|
||||
|
||||
template<> void BaseSetting<SandboxMode>::toJSON(JSONPlaceholder & out)
|
||||
template<> nlohmann::json BaseSetting<SandboxMode>::toJSON()
|
||||
{
|
||||
AbstractSetting::toJSON(out);
|
||||
return AbstractSetting::toJSON();
|
||||
}
|
||||
|
||||
template<> void BaseSetting<SandboxMode>::convertToArg(Args & args, const std::string & category)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue