rules_haskell
rules_haskell copied to clipboard
Buildifier support on NixOS with bzlmod
Is your feature request related to a problem? Please describe.
We are using Buildifier to keep our build files properly formatted and for linting.
Buildifier requires a go SDK, but currently the rules_go module always uses the default_go_sdk toolchain which will not run on NixOS.
See https://github.com/bazelbuild/bazel-gazelle/issues/1469
Describe the solution you'd like
Find a way to run buildifier in a NixOS context with bzlmod enabled.
Note, the official go SDK is statically linked for linux x86_64 (at least the latest version 1.22) and does run unchanged on NixOS. It might just work to request / use that version on all OSes.