aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env/user-env.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-11 16:41:22 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-11 16:57:48 +0100
commit9950cdec3514949942a79c58764b1ea9bf9d5d57 (patch)
treee514f3102570c3e10034e0c1476b863ca289504e /src/nix-env/user-env.cc
parente02481ded216ffb5b06b413e3695d4e11e62e02f (diff)
Move some corepkgs into the nix binary
Diffstat (limited to 'src/nix-env/user-env.cc')
-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 8e4ecda4e..717431b7a 100644
--- a/src/nix-env/user-env.cc
+++ b/src/nix-env/user-env.cc
@@ -106,7 +106,9 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
/* Get the environment builder expression. */
Value envBuilder;
- state.evalFile(state.findFile("nix/buildenv.nix"), envBuilder);
+ state.eval(state.parseExprFromString(
+ #include "buildenv.nix.gen.hh"
+ , "/"), envBuilder);
/* Construct a Nix expression that calls the user environment
builder with the manifest as argument. */