fetchgit: sparseCheckout: reference depending attributes from finalAttrs

This commit is contained in:
Yueh-Shun Li
2025-12-04 15:28:38 +08:00
parent 4c681c7ce0
commit 5c51547b22
+1 -1
View File
@@ -148,7 +148,7 @@ lib.makeOverridable (
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
sparseCheckout = lib.defaultTo (lib.optional (rootDir != "") rootDir) sparseCheckout;
sparseCheckout = lib.defaultTo (lib.optional (finalAttrs.rootDir != "") finalAttrs.rootDir) sparseCheckout;
sparseCheckoutText =
# Changed to throw on 2023-06-04
assert (