"""Fetches novnc archive""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def novnc_archive(): """Returns http_archive target for novnc archive""" http_archive( name = "novnc", build_file_content = """ package(default_visibility = ["//visibility:public"]) load("@rules_pkg//:pkg.bzl", "pkg_tar") pkg_tar( name = "novnc", srcs = glob([ "LICENSE*", "**/*.js", "**/*.html", "**/*.svg", "docs/LICENSE*", ], exclude = [ "**/karma.conf.js", "**/snap/**", "**/tests/**", "utils/**", ], ), package_dir = "/usr/share/nginx/html/novnc", strip_prefix = "./external/novnc", visibility = ["//visibility:public"] ) """, strip_prefix = "noVNC-1.3.0", urls = ["https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0.tar.gz"], sha256 = "ee8f91514c9ce9f4054d132f5f97167ee87d9faa6630379267e569d789290336", )