{"id":42608316,"url":"https://github.com/zaucy/rules_7zip","last_synced_at":"2026-01-29T02:17:14.977Z","repository":{"id":46065321,"uuid":"200596163","full_name":"zaucy/rules_7zip","owner":"zaucy","description":"Bazel rules for 7zip","archived":false,"fork":false,"pushed_at":"2025-07-25T22:58:50.000Z","size":37,"stargazers_count":5,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T06:06:36.187Z","etag":null,"topics":["bazel","bazel-rules"],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaucy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-05T06:34:52.000Z","updated_at":"2025-07-25T22:58:53.000Z","dependencies_parsed_at":"2025-05-07T05:35:17.434Z","dependency_job_id":null,"html_url":"https://github.com/zaucy/rules_7zip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zaucy/rules_7zip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Frules_7zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Frules_7zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Frules_7zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Frules_7zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaucy","download_url":"https://codeload.github.com/zaucy/rules_7zip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaucy%2Frules_7zip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28860683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bazel","bazel-rules"],"created_at":"2026-01-29T02:17:13.635Z","updated_at":"2026-01-29T02:17:14.972Z","avatar_url":"https://github.com/zaucy.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rules_7zip\n\nThis repository adds [7zip](https://www.7-zip.org/) support for your [bazel](https://bazel.build/) projects. If you want to just use the 7zip executable then you can access it as `@7zip//:7za` or use the `pkg_7z` rule.\n\n## Installation\n\nAdd this to your `MODULE.bazel` file:\n\n```python\nbazel_dep(name = \"rules_7zip\")\n\nextension_setup_7zip = use_extension(\"@rules_7zip//:extension_setup_7zip.bzl\", \"extension_setup_7zip\")\nuse_repo(extension_setup_7zip, \"7zip\")\n```\n\nIn case you're not using Bzlmod, add this to your `WORKSPACE`:\n\n```python\nhttp_archive(\n    name = \"rules_7zip\",\n    strip_prefix = \"rules_7zip-e00b15d3cb76b78ddc1c15e7426eb1d1b7ddaa3e\",\n    urls = [\"https://github.com/zaucy/rules_7zip/archive/e00b15d3cb76b78ddc1c15e7426eb1d1b7ddaa3e.zip\"],\n    sha256 = \"fd9e99f6ccb9e946755f9bc444abefbdd1eedb32c372c56dcacc7eb486aed178\",\n)\n\nload(\"@rules_7zip//:setup.bzl\", \"setup_7zip\")\nsetup_7zip()\n```\n\n## Rules\n\nSimilar to `pkg_*` rules in [rules_pkg](https://github.com/bazelbuild/rules_pkg) except the package is created with 7-zip.\n\n```python\nload(\"@rules_7zip//:defs.bzl\", \"pkg_7z\")\npkg_7z(name)\n```\n\nSimilar to [`http_archive`](https://docs.bazel.build/versions/main/repo/http.html#http_archive) except the archive will be extracted with 7zip. This enables you to fetch and extract `.7z`, `.exe`, `.msi`, or other 7-zip supported archives that `http_archive` does not support.\n\n```python\nload(\"@rules_7zip//:defs.bzl\", \"http_7z\")\nhttp_7z(name)\n```\n\n## How it works\n\n7zip pre-built binaries are used on windows and p7zip is downloaded and compiles on all other platforms. Regardless of the platform you use rules_7zip you will be able to run and utilise `@7zip//:7z` and `@7zip//:7za`.\n\n### On Windows\n\n1) Downloads 7zip 19.00 MSI installer\n2) Extracts 7zip with msiexec.exe\n3) Downloads 7zip 19.00 extras\n4) Extract 7zip extras _with_ previously extracted 7zip\n\nNow you can use 7zip 19.00!\n\n### On POSIX\n\n1) Download and extract p7zip source\n2) Setup bazel build files in order for it to be compiled\n\nNow you can use p7zip 16.02!\n\n## License\n\nThis repository is licensed under MIT. Please note that rules_7zip downloads and uses 7zip which has it's own license. You can find the license for 7zip on their website [https://7-zip.org/](https://7-zip.org/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaucy%2Frules_7zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaucy%2Frules_7zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaucy%2Frules_7zip/lists"}