summaryrefslogtreecommitdiff
path: root/elixir_home.bzl
blob: 8f35fc90ec18b71182be995a54fb4ca64eba9d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
ElixirHomeProvider = provider(
    fields = ["path"],
)

def _impl(ctx):
    return ElixirHomeProvider(path = ctx.build_setting_value)

elixir_home = rule(
    implementation = _impl,
    # The next line marks this as a special rule that we can
    # configure when invoking the cli or via .bazelrc file
    build_setting = config.string(flag = True),
)