@@ -30,7 +30,7 @@ if disabled then throw "${name} not supported for go ${go.meta.branch}" else
3030let
3131 args = lib.filterAttrs (name: _: name != "extraSrcs") args';
3232
33− removeReferences = [ go ];
33+ removeReferences = [ ] ++ lib.optional (!allowGoReference) go;
3434
3535 removeExpr = refs: lib.flip lib.concatMapStrings refs (ref: ''
3636 | sed "s,${ref},$(echo "${ref}" | sed "s,$NIX_STORE/[^-]*,$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,"),g" \