diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-03 11:06:56 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-03 11:06:56 +0200 |
commit | b74f5cdd2330ea1028eb6b04217bbe20c71a368b (patch) | |
tree | c1b6527a49b6958a07e84932492e07804859aaa6 /src/nix-env/user-env.cc | |
parent | 94a043ff3b0e9de92bdb62372f9a82186d8e871c (diff) |
createGeneration(): Take a StorePath
Diffstat (limited to 'src/nix-env/user-env.cc')
-rw-r--r-- | src/nix-env/user-env.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix-env/user-env.cc b/src/nix-env/user-env.cc index 8e7f09e12..8c6c8af05 100644 --- a/src/nix-env/user-env.cc +++ b/src/nix-env/user-env.cc @@ -151,7 +151,8 @@ bool createUserEnv(EvalState & state, DrvInfos & elems, } debug(format("switching to new user environment")); - Path generation = createGeneration(ref<LocalFSStore>(store2), profile, topLevelOut); + Path generation = createGeneration(ref<LocalFSStore>(store2), profile, + store2->parseStorePath(topLevelOut)); switchLink(profile, generation); } |