Merge pull request #50 from hercules-ci/nix-7207-_type-is-flake

Apply nix#7207 `_type = "flake";`
This commit is contained in:
Eelco Dolstra 2023-01-17 12:47:33 +01:00 committed by GitHub
commit 35bb57c0c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,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;