aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorThéophane Hufschmitt <theophane@hufschmitt.net>2022-04-05 11:03:43 +0200
committerThéophane Hufschmitt <theophane@hufschmitt.net>2022-04-05 11:03:43 +0200
commit5abe3f4aa61f33ac2124a624763e067257541871 (patch)
tree4bfed48bc12ec559ee73780310ea8de860bd6c7c /src/nix/flake.cc
parenta4a1de69dcc3c6e0c40a093d67b5f20568a5f31e (diff)
Allow `welcomeText` when checking a flake template
Fix https://github.com/NixOS/nix/issues/6321
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r--src/nix/flake.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 47a380238..ce7dc101a 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -463,7 +463,7 @@ struct CmdFlakeCheck : FlakeCommand
for (auto & attr : *v.attrs) {
std::string name(attr.name);
- if (name != "path" && name != "description")
+ if (name != "path" && name != "description" && name != "welcomeText")
throw Error("template '%s' has unsupported attribute '%s'", attrPath, name);
}
} catch (Error & e) {