2023-08-16 14:45:44 +02:00
|
|
|
workspace(name = "constellation")
|
|
|
|
|
2023-09-06 13:42:55 +02:00
|
|
|
# nixpkgs deps
|
|
|
|
load("//bazel/toolchains:nixpkgs_deps.bzl", "nixpkgs_deps")
|
|
|
|
|
|
|
|
nixpkgs_deps()
|
|
|
|
|
|
|
|
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
|
|
|
|
|
|
|
|
rules_nixpkgs_dependencies()
|
|
|
|
|
2023-10-04 10:51:17 +02:00
|
|
|
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_cc_configure", "nixpkgs_flake_package", "nixpkgs_git_repository", "nixpkgs_package", "nixpkgs_python_configure")
|
2023-09-07 10:53:42 +02:00
|
|
|
|
|
|
|
nixpkgs_git_repository(
|
|
|
|
name = "nixpkgs",
|
2023-11-29 18:43:21 +01:00
|
|
|
revision = "85306ef2470ba705c97ce72741d56e42d0264015",
|
|
|
|
sha256 = "adbbcfd49b5180e51e2971626cafb14123e3ec06c18fa143b1f386b029081f12",
|
2023-09-07 10:53:42 +02:00
|
|
|
)
|
2023-09-06 13:42:55 +02:00
|
|
|
|
2023-10-16 16:45:36 +02:00
|
|
|
nixpkgs_flake_package(
|
|
|
|
name = "awscli",
|
|
|
|
nix_flake_file = "//:flake.nix",
|
|
|
|
nix_flake_lock_file = "//:flake.lock",
|
|
|
|
package = "awscli2",
|
|
|
|
)
|
|
|
|
|
2023-11-03 11:41:45 +01:00
|
|
|
nixpkgs_flake_package(
|
|
|
|
name = "bazel",
|
|
|
|
nix_flake_file = "//:flake.nix",
|
|
|
|
nix_flake_lock_file = "//:flake.lock",
|
2024-01-08 14:38:13 +01:00
|
|
|
package = "bazel_7",
|
2023-11-03 11:41:45 +01:00
|
|
|
)
|
|
|
|
|
2023-10-16 16:45:36 +02:00
|
|
|
nixpkgs_flake_package(
|
|
|
|
name = "createrepo_c",
|
|
|
|
nix_flake_file = "//:flake.nix",
|
|
|
|
nix_flake_lock_file = "//:flake.lock",
|
|
|
|
package = "createrepo_c",
|
|
|
|
)
|
|
|
|
|
|
|
|
nixpkgs_flake_package(
|
|
|
|
name = "dnf5",
|
|
|
|
nix_flake_file = "//:flake.nix",
|
|
|
|
nix_flake_lock_file = "//:flake.lock",
|
|
|
|
package = "dnf5",
|
|
|
|
)
|
|
|
|
|
2023-09-06 13:42:55 +02:00
|
|
|
nixpkgs_flake_package(
|
|
|
|
name = "mkosi",
|
|
|
|
nix_flake_file = "//:flake.nix",
|
|
|
|
nix_flake_lock_file = "//:flake.lock",
|
|
|
|
package = "mkosi",
|
|
|
|
)
|
|
|
|
|
2024-01-04 16:34:15 +01:00
|
|
|
nixpkgs_flake_package(
|
|
|
|
name = "uplosi",
|
|
|
|
nix_flake_file = "//:flake.nix",
|
|
|
|
nix_flake_lock_file = "//:flake.lock",
|
|
|
|
package = "uplosi",
|
|
|
|
)
|
|
|
|
|
2024-02-15 13:08:27 +01:00
|
|
|
nixpkgs_flake_package(
|
|
|
|
name = "vpn_oci_image",
|
|
|
|
build_file_content = """exports_files(["layer.tar"])""",
|
|
|
|
nix_flake_file = "//:flake.nix",
|
|
|
|
nix_flake_lock_file = "//:flake.lock",
|
|
|
|
package = "vpn",
|
|
|
|
)
|
|
|
|
|
2023-09-07 10:53:42 +02:00
|
|
|
nixpkgs_package(
|
|
|
|
name = "diffutils",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2023-11-24 15:58:21 +01:00
|
|
|
nixpkgs_package(
|
|
|
|
name = "terraform-plugin-docs",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2023-11-23 17:16:44 +01:00
|
|
|
nixpkgs_package(
|
|
|
|
name = "patchelf",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2023-09-07 10:53:42 +02:00
|
|
|
nixpkgs_package(
|
|
|
|
name = "systemd",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2023-12-05 11:19:18 +01:00
|
|
|
nixpkgs_package(
|
|
|
|
name = "util-linux",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
|
|
|
nixpkgs_package(
|
|
|
|
name = "coreutils",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
|
|
|
nixpkgs_package(
|
|
|
|
name = "e2fsprogs",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2023-12-12 14:46:11 +01:00
|
|
|
nixpkgs_package(
|
|
|
|
name = "gnused",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2024-01-04 16:34:15 +01:00
|
|
|
nixpkgs_package(
|
|
|
|
name = "parallel",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
|
|
|
nixpkgs_package(
|
|
|
|
name = "cosign",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
|
|
|
nixpkgs_package(
|
|
|
|
name = "rekor-cli",
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2023-11-23 17:29:32 +01:00
|
|
|
load("//nix/cc:nixpkgs_cc_libraries.bzl", "nixpkgs_cc_library_deps")
|
|
|
|
|
|
|
|
nixpkgs_cc_library_deps()
|
|
|
|
|
2023-10-04 10:51:17 +02:00
|
|
|
load("//bazel/mkosi:mkosi_configure.bzl", "register_mkosi")
|
2023-09-06 15:31:41 +02:00
|
|
|
|
2023-10-04 10:51:17 +02:00
|
|
|
register_mkosi(
|
|
|
|
name = "mkosi_nix_toolchain",
|
|
|
|
)
|
2023-09-06 15:31:41 +02:00
|
|
|
|
2023-09-07 10:53:42 +02:00
|
|
|
nixpkgs_python_configure(
|
|
|
|
fail_not_supported = False,
|
2023-10-04 10:51:17 +02:00
|
|
|
python3_attribute_path = "python311",
|
2023-09-07 10:53:42 +02:00
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
|
|
|
|
2023-01-30 17:15:59 +01:00
|
|
|
# Go toolchain
|
|
|
|
|
2024-05-21 17:54:56 +02:00
|
|
|
# gazelle:repo gazelle
|
2023-01-30 17:15:59 +01:00
|
|
|
|
|
|
|
# C / C++ toolchains
|
|
|
|
|
2023-04-27 10:27:43 +02:00
|
|
|
load("@hermetic_cc_toolchain//toolchain:defs.bzl", zig_toolchains = "toolchains")
|
2023-01-30 17:15:59 +01:00
|
|
|
|
2023-03-21 14:29:30 +01:00
|
|
|
# If needed, we can specify a specific version of the Zig toolchain to use.
|
2023-04-27 10:27:43 +02:00
|
|
|
# If not specified, hermetic_cc_toolchain will use a known good version of Zig.
|
2023-03-09 15:23:42 +01:00
|
|
|
# See https://ziglang.org/download/ for the latest releases
|
|
|
|
|
2023-03-21 14:29:30 +01:00
|
|
|
# zig_toolchains(
|
|
|
|
# host_platform_sha256 = {
|
|
|
|
# "linux-aarch64": "b759a11993949531c692ccfc3d1a004b14df714a7a3515fe0b5c90c9a7631d61",
|
|
|
|
# "linux-x86_64": "028dad5189e02b2058679b64df16e854a1c1ca0e6044b334d4f3be6e35544f07",
|
|
|
|
# "macos-aarch64": "5709c27d581988f50f5e6fd5b69d92707787e803a1d04992e290b764617664e6",
|
|
|
|
# "macos-x86_64": "88d194adb2f3c1a9edbb4a24d018007d5f827a57d1d26b2d9f3459236da1b7b6",
|
|
|
|
# "windows-x86_64": "75e510bda108e4d78b89d5d1d09e70ea8595fac7c43b5611f280668881adb09d",
|
|
|
|
# },
|
|
|
|
# version = "0.11.0-dev.1638+7199d7c77",
|
|
|
|
# )
|
|
|
|
|
|
|
|
zig_toolchains()
|
2023-01-30 17:15:59 +01:00
|
|
|
|
2023-11-23 17:29:32 +01:00
|
|
|
nixpkgs_cc_configure(
|
|
|
|
name = "nixpkgs_cc_toolchain",
|
2023-11-29 18:43:21 +01:00
|
|
|
# TODO(malt3): Use clang once cc-wrapper path reset bug is fixed upstream.
|
|
|
|
# attribute_path = "clang_11",
|
2023-11-23 17:29:32 +01:00
|
|
|
repository = "@nixpkgs",
|
|
|
|
)
|
2023-10-04 10:51:17 +02:00
|
|
|
|
2023-11-29 18:43:21 +01:00
|
|
|
nixpkgs_cc_configure(
|
|
|
|
name = "nixpkgs_cc_aarch64_darwin_x86_64_linux",
|
|
|
|
cross_cpu = "k8",
|
|
|
|
exec_constraints = [
|
|
|
|
"@platforms//os:osx",
|
|
|
|
"@platforms//cpu:arm64",
|
|
|
|
],
|
|
|
|
nix_file = "//nix/toolchains:cc_cross_darwin_x86_64_linux.nix",
|
|
|
|
nixopts = [
|
|
|
|
"--arg",
|
|
|
|
"ccPkgs",
|
|
|
|
"import <nixpkgs> { crossSystem = \"x86_64-linux\";}",
|
|
|
|
"--show-trace",
|
|
|
|
],
|
|
|
|
repository = "@nixpkgs",
|
|
|
|
target_constraints = [
|
|
|
|
"@platforms//cpu:x86_64",
|
|
|
|
"@platforms//os:linux",
|
|
|
|
"@rules_nixpkgs_core//constraints:support_nix",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2023-10-04 10:51:17 +02:00
|
|
|
register_toolchains(
|
|
|
|
"@zig_sdk//libc_aware/toolchain:linux_amd64_gnu.2.23",
|
|
|
|
"@zig_sdk//libc_aware/toolchain:linux_arm64_gnu.2.23",
|
|
|
|
"@zig_sdk//libc_aware/toolchain:linux_amd64_musl",
|
|
|
|
"@zig_sdk//libc_aware/toolchain:linux_arm64_musl",
|
|
|
|
"@zig_sdk//toolchain:linux_amd64_gnu.2.23",
|
|
|
|
"@zig_sdk//toolchain:linux_arm64_gnu.2.23",
|
|
|
|
"@zig_sdk//toolchain:linux_amd64_musl",
|
|
|
|
"@zig_sdk//toolchain:linux_arm64_musl",
|
|
|
|
"@zig_sdk//toolchain:darwin_amd64",
|
|
|
|
"@zig_sdk//toolchain:darwin_arm64",
|
|
|
|
"@zig_sdk//toolchain:windows_amd64",
|
|
|
|
)
|
2023-01-30 17:15:59 +01:00
|
|
|
|
|
|
|
# OCI rules
|
2023-03-13 11:45:50 +01:00
|
|
|
load("//bazel/toolchains:oci_deps.bzl", "oci_deps")
|
2023-01-30 17:15:59 +01:00
|
|
|
|
|
|
|
oci_deps()
|
|
|
|
|
2023-03-15 13:10:05 +01:00
|
|
|
load("@rules_oci//oci:dependencies.bzl", "rules_oci_dependencies")
|
2023-01-30 17:15:59 +01:00
|
|
|
|
|
|
|
rules_oci_dependencies()
|
|
|
|
|
2023-04-03 17:48:30 +02:00
|
|
|
load("@rules_oci//oci:repositories.bzl", "LATEST_CRANE_VERSION", "oci_register_toolchains")
|
2023-01-30 17:15:59 +01:00
|
|
|
|
|
|
|
oci_register_toolchains(
|
|
|
|
name = "oci",
|
|
|
|
crane_version = LATEST_CRANE_VERSION,
|
|
|
|
)
|
2023-03-13 18:33:31 +01:00
|
|
|
|
2023-04-03 17:48:30 +02:00
|
|
|
load("//bazel/toolchains:container_images.bzl", "containter_image_deps")
|
|
|
|
|
|
|
|
containter_image_deps()
|
|
|
|
|
2023-03-13 18:33:31 +01:00
|
|
|
# Multirun
|
|
|
|
load("//bazel/toolchains:multirun_deps.bzl", "multirun_deps")
|
|
|
|
|
|
|
|
multirun_deps()
|
2023-03-16 14:24:53 +01:00
|
|
|
|
2023-03-29 12:30:06 +02:00
|
|
|
load("//3rdparty/bazel/com_github_medik8s_node_maintainance_operator:source.bzl", "node_maintainance_operator_deps")
|
|
|
|
|
|
|
|
node_maintainance_operator_deps()
|
|
|
|
|
2023-03-16 14:24:53 +01:00
|
|
|
# CI deps
|
|
|
|
load("//bazel/toolchains:ci_deps.bzl", "ci_deps")
|
|
|
|
|
|
|
|
ci_deps()
|
2023-08-16 22:00:07 +02:00
|
|
|
|
|
|
|
# k8s deps
|
|
|
|
load("//bazel/toolchains:k8s.bzl", "k8s_deps")
|
|
|
|
|
|
|
|
k8s_deps()
|
2023-09-11 15:44:14 +02:00
|
|
|
|
|
|
|
# kernel rpms
|
|
|
|
load("//bazel/toolchains:linux_kernel.bzl", "kernel_rpms")
|
|
|
|
|
|
|
|
kernel_rpms()
|
2023-10-16 16:45:36 +02:00
|
|
|
|
|
|
|
# mkosi rpms
|
|
|
|
load("//bazel/rpm:package_manifest.bzl", "rpm_repository")
|
|
|
|
|
|
|
|
rpm_repository(
|
|
|
|
name = "mkosi_rpms",
|
|
|
|
lockfile = "//image/mirror:SHA256SUMS",
|
|
|
|
)
|