1
1
mirror of https://github.com/tweag/asterius.git synced 2024-08-15 11:40:36 +03:00
asterius/bazel/bazel.md
Yves-Stan Le Cornec 641ade855c
Bazel files for building asterius binaries (#888)
Co-authored-by: Yves-Stan Le Cornec <yves.stan.lecornec@tweag.io>
2022-01-19 13:58:52 +01:00

773 B

The bazel build

External dependencies to keep in sync.

  • The bazel/stack.yaml file should be kept in sync with the nix.cabal.project files as we rely on this custom stack snapshot for external haskell dependencies.

On updating this file, the bazel/stackage_snapshot.json should be generated again by executing bazel run @stackage-unpinned//:pin.

  • The HASKELL_BINARYEN_COMMIT variable from the WORKSPACE file.

Because of a rules_haskell issue we do not recover this library through the stack snapshot.

  • The bazel/nix/bazel_deps.nix file mimics the shell.nix file and exposes necessary attributes to bazel. It the other nix files are refactored it may be necessary to also modify this one.