buildGoModule: reference allowGoReference from finalAttrs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user