mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 16:16:16 +02:00
use std::string
This commit is contained in:
parent
2ba1c12598
commit
5335ad6c35
1 changed files with 3 additions and 3 deletions
|
@ -788,17 +788,17 @@ Bindings * SourceExprCommand::getOverrideArgs(EvalState & state, ref<Store> stor
|
|||
Value * v = state.allocValue();
|
||||
if (i.second[0] == 'E') {
|
||||
// is a raw expression, parse
|
||||
state.mkThunk_(*v, state.parseExprFromString(string(i.second, 1), absPath(".")));
|
||||
state.mkThunk_(*v, state.parseExprFromString(std::string(i.second, 1), absPath(".")));
|
||||
} else if (i.second[0] == 'F') {
|
||||
// is a flakeref
|
||||
auto [vNew, pos] = parseInstallable(store, string(i.second, 1), false, false)->toValue(state);
|
||||
auto [vNew, pos] = parseInstallable(store, std::string(i.second, 1), false, false)->toValue(state);
|
||||
v = vNew;
|
||||
} else if (i.second[0] == 'X') {
|
||||
// is not a flakeref, use attrPath from file
|
||||
// error because --override covers expressions already
|
||||
if (!file)
|
||||
throw Error("no file to reference override from");
|
||||
auto [vNew, pos] = parseInstallable(store, string(i.second, 1), false, true)->toValue(state);
|
||||
auto [vNew, pos] = parseInstallable(store, std::string(i.second, 1), false, true)->toValue(state);
|
||||
v = vNew;
|
||||
} else {
|
||||
throw Error("[BUG] unknown argtype %s",i.second[0]);
|
||||
|
|
Loading…
Reference in a new issue