1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 18:31:49 +02:00

Allow welcomeText when checking a flake template

Fix https://github.com/NixOS/nix/issues/6321
This commit is contained in:
Théophane Hufschmitt 2022-04-05 11:03:43 +02:00
parent a4a1de69dc
commit 5abe3f4aa6
2 changed files with 4 additions and 1 deletions

View file

@ -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) {