buildBazelPackage with bazel_8

I’m trying to build a project that uses bazel 8, so I created a derivation with `buildBazelPackage. But it errors during evaluation:
``
error: function ‘anonymous lambda’ called with unexpected argument ‘enableNixHacks’
```
I believe that the problem is cause by the following line:

The reason seens to be that, differently from bazel_7, the bazel_8 package does not have that argument.

Is that a bug? If so is there a workaround?