Aspect's bazel-lib provides a bare-bones tar
rule that simply invokes a hermetic, statically linked BSD tar
binary.
This ruleset provides a thin shim to allow users of https://github.com/bazelbuild/rules_pkg to adopt tar
without having to change much of their BUILD files.
Perhaps this will be upstreamed to bazel-lib at some point.
Copy the snippet from the release you wish to use: https://github.com/alexeagle/rules_pkg/releases