diff MODULE.bazel @ 241:9c2eec61a152

[assets] Generate site images as WebP with Bazel
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 11:26:30 -0700
parents 3fa4bf481f42
children 543df0fe7168
line wrap: on
line diff
--- a/MODULE.bazel	Mon Aug 03 10:48:59 2026 -0700
+++ b/MODULE.bazel	Mon Aug 03 11:26:30 2026 -0700
@@ -33,6 +33,16 @@
 """,
 )
 
+http_archive(
+  name = "libwebp_linux_x86_64",
+  urls = ["https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0-linux-x86-64.tar.gz"],
+  sha256 = "1c5ffab71efecefa0e3c23516c3a3a1dccb45cc310ae1095c6f14ae268e38067",
+  strip_prefix = "libwebp-1.6.0-linux-x86-64",
+  build_file_content = """
+exports_files(["bin/cwebp"])
+""",
+)
+
 node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
 node.toolchain(node_version = "20.18.0")
 use_repo(node, "nodejs")