Bruno BELANYI
06cc34dc1c
All checks were successful
ci/woodpecker/push/check Pipeline was successful
WIP: use new MODULE.bazel system. WIP: use `.bazel` extension on BUILD files.
49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "io_tweag_rules_nixpkgs",
|
|
sha256 = "980edfceef2e59e1122d9be6c52413bc298435f0a3d452532b8a48d7562ffd67",
|
|
strip_prefix = "rules_nixpkgs-0.10.0",
|
|
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.10.0/rules_nixpkgs-0.10.0.tar.gz"],
|
|
)
|
|
|
|
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
|
|
|
|
# load everything that rules_nixpkgs rules need to work
|
|
rules_nixpkgs_dependencies()
|
|
|
|
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_cc_configure", "nixpkgs_local_repository")
|
|
|
|
# Define nixpkgs version using the flakes lock file.
|
|
nixpkgs_local_repository(
|
|
name = "nixpkgs",
|
|
nix_file_deps = ["//:flake.lock"],
|
|
nix_flake_lock_file = "//:flake.lock",
|
|
)
|
|
|
|
nixpkgs_cc_configure(
|
|
name = "nixpkgs_config_cc",
|
|
repository = "@nixpkgs",
|
|
)
|
|
|
|
# load rules_cc
|
|
http_archive(
|
|
name = "rules_cc",
|
|
sha256 = "4dccbfd22c0def164c8f47458bd50e0c7148f3d92002cdb459c2a96a68498241",
|
|
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz"],
|
|
)
|
|
|
|
load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")
|
|
|
|
rules_cc_dependencies()
|
|
|
|
rules_cc_toolchains()
|
|
|
|
# Load dependencies
|
|
http_archive(
|
|
name = "com_google_googletest",
|
|
sha256 = "8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7",
|
|
strip_prefix = "googletest-1.14.0",
|
|
urls = ["https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz"],
|
|
)
|