{"id":13998284,"url":"https://github.com/bazelbuild/rules_pkg","last_synced_at":"2025-03-01T11:44:11.502Z","repository":{"id":37664878,"uuid":"115038646","full_name":"bazelbuild/rules_pkg","owner":"bazelbuild","description":"Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)","archived":false,"fork":false,"pushed_at":"2024-05-02T08:10:09.000Z","size":1392,"stargazers_count":199,"open_issues_count":111,"forks_count":167,"subscribers_count":37,"default_branch":"main","last_synced_at":"2024-05-02T08:23:56.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazelbuild.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-21T19:14:08.000Z","updated_at":"2024-06-03T19:00:55.442Z","dependencies_parsed_at":"2023-10-17T01:59:39.217Z","dependency_job_id":"5f4ff269-014a-4599-815b-739f7103e44b","html_url":"https://github.com/bazelbuild/rules_pkg","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_pkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_pkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_pkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_pkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazelbuild","download_url":"https://codeload.github.com/bazelbuild/rules_pkg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241361398,"owners_count":19950379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T19:01:32.459Z","updated_at":"2025-03-01T11:44:11.496Z","avatar_url":"https://github.com/bazelbuild.png","language":"Starlark","funding_links":[],"categories":["Starlark"],"sub_categories":[],"readme":"# Bazel package building\n\nBazel rules for building tar, zip, deb, and rpm for packages.\n\nFor the latest version, see [Releases](https://github.com/bazelbuild/rules_pkg/releases) (with `WORKSPACE` setup) /\n[Documentation](https://bazelbuild.github.io/rules_pkg)\n\nUse rules-pkg-discuss@googlegroups.com for discussion.\n\nCI:\n[![Build status](https://badge.buildkite.com/e12f23186aa579f1e20fcb612a22cd799239c3134bc38e1aff.svg)](https://buildkite.com/bazel/rules-pkg)\n\n## Basic rules\n\n### Package building rules\n\n*   [pkg](https://github.com/bazelbuild/rules_pkg/tree/main/pkg) - Rules for\n    building packages of various types.\n*   [examples](https://github.com/bazelbuild/rules_pkg/tree/main/examples) -\n    Cookbook examples for using the rules.\n\nAs of Bazel 4.x, Bazel uses this rule set for packaging its distribution. Bazel\nstill contains a limited version of `pkg_tar` but its feature set is frozen.\nAny new capabilities will be added here.\n\n\n## WORKSPACE setup\n\nSample, but see [releases](https://github.com/bazelbuild/rules_pkg/releases) for the current release.\n\n```starlark\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\nhttp_archive(\n    name = \"rules_pkg\",\n    urls = [\n        \"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz\",\n        \"https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz\",\n    ],\n    sha256 = \"8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8\",\n)\nload(\"@rules_pkg//:deps.bzl\", \"rules_pkg_dependencies\")\nrules_pkg_dependencies()\n```\n\nTo use `pkg_rpm()`, you must provide a copy of `rpmbuild`. You can use the\nsystem installed `rpmbuild` with this stanza.\n```starlark\nload(\"@rules_pkg//toolchains/rpm:rpmbuild_configure.bzl\", \"find_system_rpmbuild\")\n\nfind_system_rpmbuild(\n    name = \"rules_pkg_rpmbuild\",\n    verbose = False,\n)\n```\n\n## MODULE.bazel setup\n\n```starlark\nbazel_dep(name = \"rules_pkg\", version = \"0.0.10\")\n```\nTo use `pkg_rpm()`, you must provide a copy of `rpmbuild`. You can use the\nsystem installed `rpmbuild` with this stanza.\n```starlark\nfind_rpm = use_extension(\"//toolchains/rpm:rpmbuild_configure.bzl\", \"find_system_rpmbuild_bzlmod\")\nuse_repo(find_rpm, \"rules_pkg_rpmbuild\")\nregister_toolchains(\"@rules_pkg_rpmbuild//:all\")\n```\n\n### For developers\n\n*   [Contributor information](CONTRIBUTING.md) (including contributor license agreements)\n*   [Patch process](patching.md)\n*   [Coding guidelines](developers.md) and other developer information\n\nWe hold an engineering status meeting on the first Monday of every month at 10am USA East coast time.\n[Add to calendar](https://calendar.google.com/event?action=TEMPLATE\u0026tmeid=MDE2ODMzazlwZnRxbWtkZG5wa2hlYjllMGVfMjAyMTA1MDNUMTUwMDAwWiBjXzUzcHBwZzFudWthZXRmb3E5NzhxaXViNmxzQGc\u0026tmsrc=c_53pppg1nukaetfoq978qiub6ls%40group.calendar.google.com\u0026scp=ALL) /\n[meeting notes](https://docs.google.com/document/d/1wkY8ZIcrG8tlKCHzv4st-EltsdlpQENH58fguRnErWY/edit?usp=sharing)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazelbuild%2Frules_pkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazelbuild%2Frules_pkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazelbuild%2Frules_pkg/lists"}