Apply nix#7207 _type = "flake";

https://github.com/NixOS/nix/pull/7207 adds this attribute in order
to help identify flake outputs for the purpose of type checking.
This commit is contained in:
Robert Hensing 2023-01-16 19:59:47 +01:00
parent 12c64ca55c
commit 43bfa87aa2

View file

@ -166,7 +166,8 @@ let
outputs = flake.outputs (inputs // { self = result; }); 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 in
if node.flake or true then if node.flake or true then
assert builtins.isFunction flake.outputs; assert builtins.isFunction flake.outputs;