rules_nfpm provides rules for building ‘deb’ and ‘rpm’ packages using NFPM, a packager written in Go.
While rules_pkg works, rules_nfpm has the following advantages:
nfpm_package(name, config, deps)
Generates a package using NFPM.
The config file is templatized using the go text/template library. The dot (.) value is a ConfigTemplateData struct.
name = "helloworld.deb",
config = "helloworld.yaml",
deps = [
See the example directory for a more comprehensive example.