@@ -132,7 +132,7 @@ MixFlakeOptions::MixFlakeOptions()
132132 lockFlags.writeLockFile = false ;
133133 lockFlags.inputOverrides .insert_or_assign (
134134 flake::parseInputAttrPath (inputAttrPath),
135- parseFlakeRef (fetchSettings, flakeRef, absPath (getCommandBaseDir ()), true ));
135+ parseFlakeRef (fetchSettings, flakeRef, absPath (getCommandBaseDir ()). string () , true ));
136136 }},
137137 .completer = {[&](AddCompletions & completions, size_t n, std::string_view prefix) {
138138 if (n == 0 ) {
@@ -173,7 +173,7 @@ MixFlakeOptions::MixFlakeOptions()
173173 auto flake = flake::lockFlake (
174174 flakeSettings,
175175 *evalState,
176- parseFlakeRef (fetchSettings, flakeRef, absPath (getCommandBaseDir ())),
176+ parseFlakeRef (fetchSettings, flakeRef, absPath (getCommandBaseDir ()). string () ),
177177 {.writeLockFile = false });
178178 for (auto & [inputName, input] : flake.lockFile .root ->inputs ) {
179179 auto input2 = flake.lockFile .findInput ({inputName}); // resolve 'follows' nodes
@@ -263,7 +263,7 @@ void SourceExprCommand::completeInstallable(AddCompletions & completions, std::s
263263
264264 evalSettings.pureEval = false ;
265265 auto state = getEvalState ();
266- auto e = state->parseExprFromFile (resolveExprPath (lookupFileArg (*state, * file)));
266+ auto e = state->parseExprFromFile (resolveExprPath (lookupFileArg (*state, file-> string () )));
267267
268268 Value root;
269269 state->eval (e, root);
@@ -465,10 +465,10 @@ Installables SourceExprCommand::parseInstallables(ref<Store> store, std::vector<
465465 state->eval (e, *vFile);
466466 } else if (file) {
467467 auto dir = absPath (getCommandBaseDir ());
468- state->evalFile (lookupFileArg (*state, * file, &dir), *vFile);
468+ state->evalFile (lookupFileArg (*state, file-> string () , &dir), *vFile);
469469 } else {
470- Path dir = absPath (getCommandBaseDir ());
471- auto e = state->parseExprFromString (*expr, state->rootPath (dir));
470+ auto dir = absPath (getCommandBaseDir ());
471+ auto e = state->parseExprFromString (*expr, state->rootPath (dir. string () ));
472472 state->eval (e, *vFile);
473473 }
474474
@@ -801,7 +801,8 @@ std::vector<FlakeRef> RawInstallablesCommand::getFlakeRefsForCompletion()
801801 std::vector<FlakeRef> res;
802802 res.reserve (rawInstallables.size ());
803803 for (const auto & i : rawInstallables)
804- res.push_back (parseFlakeRefWithFragment (fetchSettings, expandTilde (i), absPath (getCommandBaseDir ())).first );
804+ res.push_back (
805+ parseFlakeRefWithFragment (fetchSettings, expandTilde (i), absPath (getCommandBaseDir ()).string ()).first );
805806 return res;
806807}
807808
@@ -820,7 +821,8 @@ void RawInstallablesCommand::run(ref<Store> store)
820821
821822std::vector<FlakeRef> InstallableCommand::getFlakeRefsForCompletion ()
822823{
823- return {parseFlakeRefWithFragment (fetchSettings, expandTilde (_installable), absPath (getCommandBaseDir ())).first };
824+ return {parseFlakeRefWithFragment (fetchSettings, expandTilde (_installable), absPath (getCommandBaseDir ()).string ())
825+ .first };
824826}
825827
826828void InstallablesCommand::run (ref<Store> store, std::vector<std::string> && rawInstallables)
0 commit comments