mirror of https://github.com/pulumi/pulumi.git
156 lines
4.7 KiB
Python
156 lines
4.7 KiB
Python
workspace(name = "pulumi")
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "bazel_skylib",
|
|
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
|
|
|
bazel_skylib_workspace()
|
|
|
|
RULES_NIXPKGS_VERSION = "126e9f66b833337be2c35103ce46ab66b4e44799"
|
|
|
|
http_archive(
|
|
name = "io_tweag_rules_nixpkgs",
|
|
strip_prefix = "rules_nixpkgs-{}".format(RULES_NIXPKGS_VERSION),
|
|
urls = ["https://github.com/tweag/rules_nixpkgs/archive/{}.tar.gz".format(RULES_NIXPKGS_VERSION)],
|
|
)
|
|
|
|
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
|
|
rules_nixpkgs_dependencies()
|
|
|
|
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_local_repository", "nixpkgs_python_configure")
|
|
|
|
nixpkgs_local_repository(
|
|
name = "nixpkgs",
|
|
nix_file = "//:nixpkgs.nix",
|
|
)
|
|
|
|
nixpkgs_python_configure(
|
|
name = "nixpkgs_python_config",
|
|
repository = "@nixpkgs",
|
|
python3_attribute_path = "python3WithPackages",
|
|
)
|
|
|
|
http_archive(
|
|
name = "io_bazel_rules_go",
|
|
sha256 = "80a98277ad1311dacd837f9b16db62887702e9f1d1c4c9f796d0121a46c8e184",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip",
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip",
|
|
],
|
|
)
|
|
|
|
http_archive(
|
|
name = "bazel_gazelle",
|
|
sha256 = "32938bda16e6700063035479063d9d24c60eda8d79fd4739563f50d331cb3209",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.0.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.0.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
|
|
|
git_repository(
|
|
name = "com_google_protobuf",
|
|
commit = "e6f8b9d1026996f6463d4f014d7760256b757227",
|
|
remote = "https://github.com/protocolbuffers/protobuf",
|
|
shallow_since = "1558721209 -0700",
|
|
)
|
|
|
|
http_archive(
|
|
name = "zlib",
|
|
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
|
|
sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
|
|
strip_prefix = "zlib-1.2.11",
|
|
urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"],
|
|
)
|
|
|
|
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
|
|
|
protobuf_deps()
|
|
|
|
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
|
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
|
|
|
############################################################
|
|
# Define your own dependencies here using go_repository.
|
|
# Else, dependencies declared by rules_go/gazelle will be used.
|
|
# The first declaration of an external repository "wins".
|
|
############################################################
|
|
|
|
load("//:deps.bzl", "go_deps")
|
|
|
|
# gazelle:repository_macro deps.bzl%go_deps
|
|
go_deps()
|
|
# gazelle:go_naming_convention import_alias
|
|
|
|
go_rules_dependencies()
|
|
|
|
go_register_toolchains(version = "1.21.1")
|
|
|
|
gazelle_dependencies()
|
|
|
|
SHA = "84aec9e21cc56fbc7f1335035a71c850d1b9b5cc6ff497306f84cced9a769841"
|
|
|
|
VERSION = "0.31.0"
|
|
|
|
http_archive(
|
|
name = "rules_python",
|
|
sha256 = SHA,
|
|
strip_prefix = "rules_python-{}".format(VERSION),
|
|
url = "https://github.com/bazelbuild/rules_python/releases/download/{}/rules_python-{}.tar.gz".format(VERSION, VERSION),
|
|
)
|
|
|
|
http_archive(
|
|
name = "rules_python_gazelle_plugin",
|
|
sha256 = "c68bdc4fbec25de5b5493b8819cfc877c4ea299c0dcb15c244c5a00208cde311",
|
|
strip_prefix = "rules_python-0.31.0/gazelle",
|
|
url = "https://github.com/bazelbuild/rules_python/releases/download/0.31.0/rules_python-0.31.0.tar.gz",
|
|
)
|
|
|
|
load("@rules_python//python:repositories.bzl", "py_repositories")
|
|
|
|
py_repositories()
|
|
|
|
load("//build:directory_repo.bzl", "directory_repo")
|
|
|
|
directory_repo(
|
|
name = "com_github_pulumi_pulumi_pkg_v3",
|
|
directory = "pkg",
|
|
)
|
|
|
|
directory_repo(
|
|
name = "com_github_pulumi_pulumi_sdk_v3",
|
|
directory = "sdk",
|
|
)
|
|
|
|
load("@rules_python//python:repositories.bzl", "py_repositories")
|
|
|
|
py_repositories()
|
|
|
|
load("@rules_python//python:pip.bzl", "pip_parse")
|
|
|
|
pip_parse(
|
|
name = "pip",
|
|
python_interpreter_target = "@nixpkgs_python_config_python3//:bin/python",
|
|
|
|
requirements_lock = "//:requirements_lock.txt",
|
|
)
|
|
|
|
load("@pip//:requirements.bzl", "install_deps")
|
|
|
|
install_deps()
|
|
|
|
load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps")
|
|
|
|
_py_gazelle_deps()
|