Skip to content

Commit

Permalink
build(bazel): make bazel build //... work
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Jan 21, 2021
1 parent df36561 commit e71a3a1
Show file tree
Hide file tree
Showing 17 changed files with 1,676 additions and 178 deletions.
1 change: 0 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#build --host_platform=@io_tweag_rules_nixpkgs//nixpkgs/platforms:host
build --action_env=GOPRIVATE=github.com/symbiont-io
run --action_env=GOPRIVATE=github.com/symbiont-io
1 change: 0 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ load("@bazel_gazelle//:def.bzl", "gazelle")

# gazelle:prefix github.com/symbiont-io/detsys-testkit
# gazelle:build_file_name BUILD.bazel,BUILD
# gazelle:exclude src/lib/result
gazelle(name = "gazelle")
81 changes: 8 additions & 73 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,73 +1,3 @@
#load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#
#http_archive(
# name = "io_tweag_rules_nixpkgs",
# strip_prefix = "rules_nixpkgs-0.7.0",
# urls = ["https://github.com/tweag/rules_nixpkgs/archive/v0.7.0.tar.gz"],
# sha256 = "5c80f5ed7b399a857dd04aa81e66efcb012906b268ce607aaf491d8d71f456c8",
#)
#
#load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl",
# "rules_nixpkgs_dependencies")
#
#rules_nixpkgs_dependencies()
#
#load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository",
# "nixpkgs_local_repository", "nixpkgs_package")
#
## load("@io_tweag_rules_nixpkgs//nixpkgs:toolchains/go.bzl", "nixpkgs_go_toolchain")
#
#nixpkgs_local_repository(
# name = "nixpkgs",
# nix_file_deps = [
# "//:nix/sources.nix",
# "//:nix/sources.json",
# "//:nix/graalvm.nix",
# ],
#)
#
#nixpkgs_package(
# name = "checker",
# nix_file = "//:src/checker/default.nix",
# repository = "@nixpkgs",
#)
#
#nixpkgs_package(
# name = "cli",
# nix_file = "//:src/cli/default.nix",
# repository = "@nixpkgs",
#)
#
#nixpkgs_package(
# name = "db",
# nix_file = "//:src/db/default.nix",
# repository = "@nixpkgs",
#)
#
#nixpkgs_package(
# name = "debugger",
# nix_file = "//:src/debugger/default.nix",
# repository = "@nixpkgs",
#)
#
#nixpkgs_package(
# name = "generator",
# nix_file = "//:src/generator/default.nix",
# repository = "@nixpkgs",
#)
#
#nixpkgs_package(
# name = "ldfi",
# nix_file = "//:src/ldfi/default.nix",
# repository = "@nixpkgs",
#)
#
#nixpkgs_package(
# name = "scheduler",
# nix_file = "//:src/scheduler/default.nix",
# repository = "@nixpkgs",
#)

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
Expand All @@ -89,13 +19,18 @@ http_archive(
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

go_rules_dependencies()

# gazelle will put stuff here

go_rules_dependencies()
load("//:gazelle-ws.bzl", "gazelle_ws")

# gazelle:repository_macro gazelle-ws.bzl%gazelle_ws
gazelle_ws()

go_register_toolchains(version = "1.15.5")

gazelle_dependencies()
gazelle_dependencies()
Loading

0 comments on commit e71a3a1

Please sign in to comment.