From 43bfa87aa2f32792b32b84e00ec9af91a4c79e85 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 16 Jan 2023 19:59:47 +0100 Subject: [PATCH] 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. --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 1ffef45..c6557f9 100644 --- a/default.nix +++ b/default.nix @@ -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;