Fix build

This commit is contained in:
Eelco Dolstra 2019-06-03 12:23:49 +02:00
parent bc11ab22a3
commit 0042183717
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -245,9 +245,10 @@ int main(int argc, char * * argv)
Value v;
if (myArgs.flake) {
using namespace flake;
FlakeRef flakeRef(myArgs.releaseExpr);
auto vFlake = state.allocValue();
makeFlakeValue(state, flakeRef, AllPure, *vFlake);
callFlake(state, resolveFlake(state, flakeRef, AllPure), *vFlake);
auto vProvides = (*vFlake->attrs->get(state.symbols.create("provides")))->value;
state.forceValue(*vProvides);