mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
Pass a flake to itself as "self"
This commit is contained in:
parent
3ddb6d1833
commit
939bee06cd
2 changed files with 8 additions and 4 deletions
|
@ -441,6 +441,8 @@ void callFlake(EvalState & state, const Dependencies & flake, Value & v)
|
|||
auto vProvides = state.allocAttr(v, state.symbols.create("provides"));
|
||||
mkApp(*vProvides, *flake.flake.vProvides, v);
|
||||
|
||||
v.attrs->push_back(Attr(state.symbols.create("self"), &v));
|
||||
|
||||
v.attrs->sort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue