Loading
buildBazelPackage: support `__structuredAttrs = true`
When using structured attributes, `bazelFlags` is an array.
`$bazelFlags` then only returns the array's first item.
Instead we need to use `"${bazelFlags[@]}"` which correctly returns all
array items with proper support for spaces in individual flags.
To remain compatible with the non-structured case, this adds a
conversion from array or string `bazelFlags` into an array
`bazelFlagsArray`.