--- a/WORKSPACE +++ b/WORKSPACE @@ -10,6 +10,69 @@ ], ) +new_local_repository( + name = "openssl", + path = "@GUIX_OPENSSL@", + build_file_content = """ +cc_library( + name = "openssl", + includes = ["include"], + linkopts = ["-lssl", "-lcrypto"], + visibility = ["//visibility:public"], +) +""", +) +new_local_repository( + name = "jemalloc", + path = "@GUIX_JEMALLOC@", + build_file_content = """ +cc_library( + name = "libjemalloc", + includes = ["include"], + linkopts = ["-ljemalloc", "-ldl"], + visibility = ["//visibility:public"], +) +filegroup( + name = "shared", + srcs = [], + visibility = ["//visibility:public"], +) +""", +) + +new_local_repository( + name = "com_github_antirez_redis", + path = "@GUIX_REDIS@", + build_file_content = """ +filegroup( + name = "redis-server", + srcs = ["bin/redis-server"], + visibility = ["//visibility:public"], +) +filegroup( + name = "redis-cli", + srcs = ["bin/redis-cli"], + visibility = ["//visibility:public"], +) +""", +) +new_local_repository( + name = "com_github_redis_hiredis", + path = "@GUIX_HIREDIS@", + build_file_content = """ +cc_library( + name = "hiredis", + includes = ["include"], + linkopts = ["-lhiredis", "-lhiredis_ssl"], + visibility = ["//visibility:public"], +) +""", +) + + + + + load("//bazel:ray_deps_setup.bzl", "ray_deps_setup") ray_deps_setup() @@ -47,6 +110,7 @@ ) load("@rules_python//python:repositories.bzl", "python_register_toolchains") +load("@rules_python//python:repositories.bzl", "py_repositories") python_register_toolchains( name = "python3_9", @@ -54,24 +118,7 @@ register_toolchains = False, ) -load("@python3_9//:defs.bzl", python39 = "interpreter") -load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependencies") - -pip_install_dependencies() - -load("@rules_python//python:pip.bzl", "pip_parse") - -pip_parse( - name = "py_deps_buildkite", - python_interpreter_target = python39, - requirements_lock = "//release:requirements_buildkite.txt", -) - -load("@py_deps_buildkite//:requirements.bzl", install_py_deps_buildkite = "install_deps") - -install_py_deps_buildkite() - -register_toolchains("//:python_toolchain") +register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain") register_execution_platforms( "@local_config_platform//:host",