mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
installables: fix nix-dram parsing
This commit is contained in:
parent
8909f06cae
commit
9df3607c72
1 changed files with 6 additions and 4 deletions
|
@ -1009,11 +1009,13 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
bool isAttrPath = std::regex_match(s, attrPathRegex);
|
auto prefixS = std::string { prefix };
|
||||||
|
|
||||||
auto actualRef = isAttrPath ? "flake:default#" + s : s;
|
bool isAttrPath = std::regex_match(prefixS, attrPathRegex);
|
||||||
|
|
||||||
auto [flakeRef, fragment] = parseFlakeRefWithFragment(std::string { prefix }, absPath("."));
|
auto actualRef = isAttrPath ? "flake:default#" + prefixS : prefixS;
|
||||||
|
|
||||||
|
auto [flakeRef, fragment] = parseFlakeRefWithFragment(actualRef, absPath("."));
|
||||||
|
|
||||||
auto state = getEvalState();
|
auto state = getEvalState();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue