{"id":28749687,"url":"https://github.com/psigen/rules_debian","last_synced_at":"2025-07-03T17:35:25.632Z","repository":{"id":151961326,"uuid":"260598751","full_name":"psigen/rules_debian","owner":"psigen","description":"Bazel rules to manage installation of .deb archives from Debian APT repositories.","archived":false,"fork":false,"pushed_at":"2023-02-20T23:39:17.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T20:50:53.961Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psigen.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":"2020-05-02T02:25:54.000Z","updated_at":"2023-02-13T08:51:28.000Z","dependencies_parsed_at":"2023-06-02T11:00:24.508Z","dependency_job_id":null,"html_url":"https://github.com/psigen/rules_debian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psigen/rules_debian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Frules_debian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Frules_debian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Frules_debian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Frules_debian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psigen","download_url":"https://codeload.github.com/psigen/rules_debian/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psigen%2Frules_debian/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263370155,"owners_count":23456423,"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":"2025-06-16T20:44:07.784Z","updated_at":"2025-07-03T17:35:25.615Z","avatar_url":"https://github.com/psigen.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rules_debian\n\nBazel rules to manage installation and integration of `.deb` archives from\nDebian APT repositories.\n\nNote: It isn't necessary to create a mapping for debian packages since all\nallowable package names fall into a subset of allowable bazel target names:\n\n- https://docs.bazel.build/versions/master/build-ref.html#lexi\n- https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_debian_package_file_names\n\n## Repository rules\n\n- [deb_archive](#deb_archive)\n- [deb_package](#deb_package)\n- [deb_packages](#deb_packages)\n\nCheck out some [examples](./example).\n\n## deb_archive\n\n**In your `WORKSPACE`**\n\n```\ngit_repository(\n    name = \"rules_debian\",\n    remote = \"https://github.com/psigen/rules_debian.git\"\n    tag = \"master\"  # Replace this with 'commit = \u003cgit hash\u003e' after testing.\n)\n\nload(\"@rules_debian//:debian.bzl\", \"deb_archive\")\n\ndeb_archive(\n    name = \"org_boost\",\n    packages = {\n        \"libboost-system-dev\": \"*\",\n    },\n    export_cc = True,\n)\n```\n\n**In your `BUILD.bazel`**\n\n```\ncc_library(\n    name = \"example\",\n    srcs = [\"example.cpp\"],\n    deps = [\n        \"@org_boost//libboost-system-dev:cc\",\n    ],\n)\n```\n\n## deb_package\n\n**In your `WORKSPACE`**\n\n```\ngit_repository(\n    name = \"rules_debian\",\n    remote = \"https://github.com/psigen/rules_debian.git\"\n    tag = \"master\"  # Replace this with 'commit = \u003cgit hash\u003e' after testing.\n)\n\nload(\"@rules_debian//:debian.bzl\", \"deb_package\")\n\ndeb_package(\n    name = \"boost-dev\",\n    sha256 = \"bec8082fb8e219d54676d59f0ad468452f2d63f01878acb2fe7228085b33c011\",\n    urls = [\n        \"http://us.archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb\",\n    ],\n    export_cc = True,\n)\n\ndeb_package(\n    name = \"boost-system\",\n    sha256 = \"390e93c275504a03101de7e35d898f224dff2594ff802dcc83a936b5fca690cc\",\n    urls = [\n        \"http://us.archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost-system1.65.1_1.65.1+dfsg-0ubuntu5_amd64.deb\",\n    ],\n    export_cc = True,\n)\n\n```\n\n**In your `BUILD.bazel`**\n\n```\ncc_library(\n    name = \"example\",\n    srcs = [\"example.cpp\"],\n    deps = [\n        \"@boost-dev//:cc\",\n        \"@boost-system//:cc\",\n    ],\n)\n```\n\n## deb_packages\n\n**In your `WORKSPACE`**\n\n```\ndeb_packages(\n    name = \"boost\",\n    dist = \"bionic\",\n    mirrors = [\"http://us.archive.ubuntu.com/ubuntu/\"],\n    packages = {\n        \"libboost1.65-dev\": \"bec8082fb8e219d54676d59f0ad468452f2d63f01878acb2fe7228085b33c011\",\n        \"libboost-system1.65-dev\": \"98f7a2a1d44a346249c4398e1e2fa37656c83651aaabc6e81aad416339b37a9c\",\n        \"libboost-system1.65.1\": \"390e93c275504a03101de7e35d898f224dff2594ff802dcc83a936b5fca690cc\",\n    },\n)\n```\n\n**In your `BUILD.bazel`**\n\n```\ncc_binary(\n    name = \"example\",\n    srcs = [\"example.cpp\"],\n    deps = [\n        \"@boost//libboost-system1.65-dev:cc\",\n    ],\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsigen%2Frules_debian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsigen%2Frules_debian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsigen%2Frules_debian/lists"}