buildGoModule: reference allowGoReference from finalAttrs

This commit is contained in:
Yueh-Shun Li
2025-09-11 01:35:52 +08:00
parent 0cadc7de94
commit 1fa17f4fa3
+3 -2
View File
@@ -250,7 +250,7 @@ lib.extendMkDerivation {
++
lib.warnIf (builtins.elem "-trimpath" GOFLAGS)
"`-trimpath` is added by default to GOFLAGS by buildGoModule when allowGoReference isn't set to true"
(lib.optional (!allowGoReference) "-trimpath");
(lib.optional (!finalAttrs.allowGoReference) "-trimpath");
inherit enableParallelBuilding;
@@ -410,7 +410,8 @@ lib.extendMkDerivation {
strictDeps = true;
disallowedReferences = lib.optional (!allowGoReference) go;
inherit allowGoReference;
disallowedReferences = lib.optional (!finalAttrs.allowGoReference) go;
passthru = {
inherit go;