Mark flakes with .type = "flake".

Fixes #7186
This commit is contained in:
Shea Levy 2022-10-23 06:54:11 -04:00
parent b3d2a05c59
commit 334fa81d08
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -43,7 +43,7 @@ let
outputs = flake.outputs (inputs // { self = result; });
result = outputs // sourceInfo // { inherit inputs; inherit outputs; inherit sourceInfo; };
result = outputs // sourceInfo // { inherit inputs; inherit outputs; inherit sourceInfo; type = "flake"; };
in
if node.flake or true then
assert builtins.isFunction flake.outputs;