mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Create some type aliases for string Contexts
This commit is contained in:
parent
d5322698a2
commit
91adfb8894
6 changed files with 10 additions and 8 deletions
|
@ -82,7 +82,7 @@ static void prim_getContext(EvalState & state, const Pos & pos, Value * * args,
|
|||
drv = std::string(p, 1);
|
||||
path = &drv;
|
||||
} else if (p.at(0) == '!') {
|
||||
std::pair<std::string, std::string> ctx = decodeContext(p);
|
||||
NixStringContextElem ctx = decodeContext(p);
|
||||
drv = ctx.first;
|
||||
output = ctx.second;
|
||||
path = &drv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue