Support building flakes from a Git repo url with submodules query parameter

This commit is contained in:
Timothy 2021-10-26 20:02:37 +07:00
parent 5667822edc
commit 8919b81dad

View file

@ -51,7 +51,7 @@ struct GitInputScheme : InputScheme
for (auto &[name, value] : url.query) {
if (name == "rev" || name == "ref")
attrs.emplace(name, value);
else if (name == "shallow")
else if (name == "shallow" || name == "submodules")
attrs.emplace(name, Explicit<bool> { value == "1" });
else
url2.query.emplace(name, value);