rules_haskell icon indicating copy to clipboard operation
rules_haskell copied to clipboard

Buildifier support on NixOS with bzlmod

Open avdv opened this issue 2 years ago • 1 comments

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.

avdv avatar Feb 21 '24 08:02 avdv

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.

avdv avatar Feb 21 '24 09:02 avdv