1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00
This commit is contained in:
Shahar "Dawn" Or 2025-06-23 10:10:54 -07:00 committed by GitHub
commit a2784e510f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 93 additions and 20 deletions

View file

@ -1383,7 +1383,7 @@ static void derivationStrictInternal(
if (i->name == state.sStructuredAttrs) continue;
jsonObject->emplace(key, printValueAsJSON(state, true, *i->value, pos, context));
jsonObject->emplace(key, printValueAsJSON(state, true, false, *i->value, pos, context));
if (i->name == state.sBuilder)
drv.builder = state.forceString(*i->value, context, pos, context_below);
@ -2325,7 +2325,7 @@ static void prim_toJSON(EvalState & state, const PosIdx pos, Value * * args, Val
{
std::ostringstream out;
NixStringContext context;
printValueAsJSON(state, true, *args[0], pos, out, context);
printValueAsJSON(state, true, false, *args[0], pos, out, context);
v.mkString(toView(out), context);
}