shell.nix 684 B

123456789101112131415161718192021222324252627282930
  1. {pkgs ? import ./nixpkgs.nix {}}:
  2. with pkgs;
  3. mkShell {
  4. # XXX: hack for macosX, this flags disable bazel usage of xcode
  5. # Note: this is set even for linux so any regression introduced by this flag
  6. # will be catched earlier
  7. # See: https://github.com/bazelbuild/bazel/issues/4231
  8. BAZEL_USE_CPP_ONLY_TOOLCHAIN=1;
  9. # Set UTF-8 local so that run-tests can parse GHC's unicode output.
  10. LANG="C.UTF-8";
  11. buildInputs = [
  12. bazel_4
  13. git
  14. gnused
  15. nix
  16. openjdk11
  17. python3
  18. which
  19. # For stack_install.
  20. stack
  21. # Needed to get correct locale for tests with encoding
  22. glibcLocales
  23. # to avoid CA certificate failures on macOS CI
  24. cacert
  25. ];
  26. }