load("@rules_pkg//:providers.bzl", "PackageVariablesInfo")

def _debvars_impl(ctx):
    return PackageVariablesInfo(values = {
        "package": ctx.attr.package,
        "version": ctx.attr.version,
        "arch": ctx.attr.arch,
    })

debvars = rule(
    implementation = _debvars_impl,
    attrs = {
        "package": attr.string(
            doc = "Placeholder for our final product name.",
        ),
        "version": attr.string(
            doc = "Placeholder for our release version.",
        ),
        "arch": attr.string(
            doc = "Placeholder for our target Debian architecture.",
        ),
    },
)
