Skip to content

Commit

Permalink
Apply nix#7207 _type = "flake";
Browse files Browse the repository at this point in the history
NixOS/nix#7207 adds this attribute in order
to help identify flake outputs for the purpose of type checking.
  • Loading branch information
roberth committed Jan 16, 2023
1 parent 12c64ca commit 43bfa87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ 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;
Expand Down

0 comments on commit 43bfa87

Please sign in to comment.