mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 18:24:53 +00:00
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`.