fetchFromGitHub: prevent user overwriting url and private arguments

This commit is contained in:
Yueh-Shun Li
2025-10-27 05:49:58 +08:00
parent 7a4ad371b1
commit 745fc66702
+2 -2
View File
@@ -112,7 +112,8 @@ lib.makeOverridable (
revWithTag = if tag != null then "refs/tags/${tag}" else rev;
fetcherArgs =
(
passthruAttrs
// (
if useFetchGit then
{
inherit
@@ -152,7 +153,6 @@ lib.makeOverridable (
}
)
// privateAttrs
// passthruAttrs
// {
inherit name;
};