"""Provides the repository macro to import Eigen."""

load("//third_party:repo.bzl", "tfrt_http_archive")

def repo(name):
    """Imports Eigen."""

    # Attention: tools parse and update these lines.
    EIGEN_COMMIT = "5ad8b9bfe2bf75620bc89467c5cc051fc2a597df"
    EIGEN_SHA256 = "b47c1f5e54961a4289b5c690a54d78b20ae0a769a8914d81cfea764018de9b48"

    tfrt_http_archive(
        name = name,
        build_file = "//third_party/eigen:BUILD",
        sha256 = EIGEN_SHA256,
        strip_prefix = "eigen-{commit}".format(commit = EIGEN_COMMIT),
        urls = [
            "https://storage.googleapis.com/mirror.tensorflow.org/gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
            "https://gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
        ],
    )

@@ -219,134 +219,134 @@
  = %22
-5ad8b9bfe2bf75620bc89467c5cc051fc2a597df%22%0A    EIGEN_SHA256 = %22b47c1f5e54961a4289b5c690a54d78b20ae0a769a8914d81cfea764018de9b48
+7792b1e909a98703181aecb8810b4b654004c25d%22%0A    EIGEN_SHA256 = %22517a02cd24362fd9284ce61e8baeeabb4fee181941752da47eb4c07a52d38d4d
 %22%0A%0A 

Update Eigen to: https://gitlab.com/libeigen/eigen/-/commit/7792b1e909a98703181aecb8810b4b654004c25d