diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-16 16:29:44 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-16 16:29:44 +0200 |
commit | 939bee06cd7c68af1508fab127202689fc63c22e (patch) | |
tree | d7e064007ec3f88e800920de4b742536eb14659e /src/libexpr/primops/flake.cc | |
parent | 3ddb6d1833a94e3d141116f3e579e66ebef04111 (diff) |
Pass a flake to itself as "self"
Diffstat (limited to 'src/libexpr/primops/flake.cc')
-rw-r--r-- | src/libexpr/primops/flake.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/primops/flake.cc b/src/libexpr/primops/flake.cc index 193b521a3..296db3f92 100644 --- a/src/libexpr/primops/flake.cc +++ b/src/libexpr/primops/flake.cc @@ -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(); } |