fetchurl, fetchgit: use __structuredAttrs = true and pass curlOptsList and sparseCheckout as lists (#464475)

This commit is contained in:
Yueh-Shun Li
2025-12-11 18:25:29 +00:00
committed by GitHub
4 changed files with 19 additions and 8 deletions
+2
View File
@@ -4,6 +4,8 @@
# - revision specified and remote without HEAD
#
source "$NIX_ATTRS_SH_FILE"
echo "exporting $url (rev $rev) into $out"
runHook preFetch
+7 -1
View File
@@ -138,6 +138,8 @@ lib.makeOverridable (
derivationArgs
// {
__structuredAttrs = true;
inherit name;
builder = ./builder.sh;
@@ -243,7 +245,11 @@ lib.makeOverridable (
"FETCHGIT_HTTP_PROXIES"
];
inherit preferLocalBuild meta allowedRequisites;
outputChecks.out = {
${if allowedRequisites != null then "allowedRequisites" else null} = allowedRequisites;
};
inherit preferLocalBuild meta;
passthru = {
gitRepoUrl = url;