Merge pull request #7207 from NixOS/flake-type

Mark flakes with ._type = "flake".
This commit is contained in:
Eelco Dolstra 2022-10-25 17:31:23 +02:00 committed by GitHub
commit fed1700754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;