aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-22 13:18:11 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-03-22 13:18:56 +0100
commita0259a21a416301573d9d6b994d6b5fb62a1bcf3 (patch)
tree9bb68fa69b217243b6dd040452fa9b50522221c5 /src/nix-env
parent732296ddc078f9cce8ffeb3131fef8898330b6ae (diff)
Don't hide repeated values while generating manifest.nix
Fixes #6243.
Diffstat (limited to 'src/nix-env')
-rw-r--r--src/nix-env/user-env.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix-env/user-env.cc b/src/nix-env/user-env.cc
index bcc7736ac..78692b9c6 100644
--- a/src/nix-env/user-env.cc
+++ b/src/nix-env/user-env.cc
@@ -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;