...

Text file src/edge-infra.dev/hack/deps/novnc.bzl

Documentation: edge-infra.dev/hack/deps

     1"""Fetches novnc archive"""
     2
     3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
     4
     5def novnc_archive():
     6    """Returns http_archive target for novnc archive"""
     7
     8    http_archive(
     9        name = "novnc",
    10        build_file_content = """
    11package(default_visibility = ["//visibility:public"])
    12load("@rules_pkg//:pkg.bzl", "pkg_tar")
    13
    14pkg_tar(
    15    name = "novnc",
    16    srcs = glob([
    17            "LICENSE*",
    18            "**/*.js",
    19            "**/*.html",
    20            "**/*.svg",
    21            "docs/LICENSE*",
    22        ],
    23        exclude = [
    24            "**/karma.conf.js",
    25            "**/snap/**",
    26            "**/tests/**",
    27            "utils/**",
    28        ],
    29    ),
    30    package_dir = "/usr/share/nginx/html/novnc",
    31    strip_prefix = "./external/novnc",
    32    visibility = ["//visibility:public"]
    33)
    34""",
    35        strip_prefix = "noVNC-1.3.0",
    36        urls = ["https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0.tar.gz"],
    37        sha256 = "ee8f91514c9ce9f4054d132f5f97167ee87d9faa6630379267e569d789290336",
    38    )

View as plain text