1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 06:01:00 +01:00

Don't hide repeated values while generating manifest.nix

Fixes #6243.

(cherry picked from commit a0259a21a4)
This commit is contained in:
Eelco Dolstra 2022-03-22 13:18:11 +01:00 committed by github-actions[bot]
parent fc553fb632
commit 0a26f9ae4a
4 changed files with 32 additions and 18 deletions

View file

@ -105,8 +105,10 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
/* Also write a copy of the list of user environment elements to
the store; we need it for future modifications of the
environment. */
std::ostringstream str;
manifest.print(str, true);
auto manifestFile = state.store->addTextToStore("env-manifest.nix",
fmt("%s", manifest), references);
str.str(), references);
/* Get the environment builder expression. */
Value envBuilder;