From 745fc66702bfe112e26e683603cef855dc010c3a Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Mon, 27 Oct 2025 05:49:58 +0800 Subject: [PATCH] fetchFromGitHub: prevent user overwriting url and private arguments --- pkgs/build-support/fetchgithub/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/fetchgithub/default.nix b/pkgs/build-support/fetchgithub/default.nix index dfe210f32c41..4a99305d0abb 100644 --- a/pkgs/build-support/fetchgithub/default.nix +++ b/pkgs/build-support/fetchgithub/default.nix @@ -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; };