File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Any new capabilities will be added here.
2828
2929Sample, but see [ releases] ( https://github.com/bazelbuild/rules_pkg/releases ) for the current release.
3030
31- ```
31+ ``` starlark
3232load(" @bazel_tools//tools/build_defs/repo:http.bzl" , " http_archive" )
3333http_archive(
3434 name = " rules_pkg" ,
@@ -44,7 +44,7 @@ rules_pkg_dependencies()
4444
4545To use ` pkg_rpm() ` , you must provide a copy of ` rpmbuild ` . You can use the
4646system installed ` rpmbuild ` with this stanza.
47- ```
47+ ``` starlark
4848load(" @rules_pkg//toolchains/rpm:rpmbuild_configure.bzl" , " find_system_rpmbuild" )
4949
5050find_system_rpmbuild(
@@ -55,12 +55,12 @@ find_system_rpmbuild(
5555
5656## MODULE.bazel setup
5757
58- ```
58+ ``` starlark
5959bazel_dep(name = " rules_pkg" , version = " 0.0.10" )
6060```
6161To use ` pkg_rpm() ` , you must provide a copy of ` rpmbuild ` . You can use the
6262system installed ` rpmbuild ` with this stanza.
63- ```
63+ ``` starlark
6464find_rpm = use_extension(" //toolchains/rpm:rpmbuild_configure.bzl" , " find_system_rpmbuild_bzlmod" )
6565use_repo(find_rpm, " rules_pkg_rpmbuild" )
6666register_toolchains(" @rules_pkg_rpmbuild//:all" )
You can’t perform that action at this time.
0 commit comments