build/bazel/third_party: replace git_repositories with http_archive

Remove the rest of the git_repositories with http_archive fetches

Change-Id: Ie9fb5f93b4eb333fc26ce52e2d062cacf8177eb4
Reviewed-on: https://review.monogon.dev/c/monogon/+/3843
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/build/bazel/third_party.MODULE.bazel b/build/bazel/third_party.MODULE.bazel
index 6c59685..cf7db66 100644
--- a/build/bazel/third_party.MODULE.bazel
+++ b/build/bazel/third_party.MODULE.bazel
@@ -25,8 +25,6 @@
     },
 )
 
-git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
-
 http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
 
 http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
@@ -51,10 +49,14 @@
 )
 
 # Used in swtpm
-git_repository(
+BORINGSSL_VERSION = "d7278cebad5b8eda0901246f2215344cffece4f4"
+
+http_archive(
     name = "boringssl",
-    commit = "d7278cebad5b8eda0901246f2215344cffece4f4",
-    remote = "https://boringssl.googlesource.com/boringssl",
+    integrity = "sha256-bpWXzfHbkV8J3Ed1Hp/L8WyFnWnFDn3+IuNN8A0IGyY=",
+    urls = [
+        "https://boringssl.googlesource.com/boringssl/+archive/%s.tar.gz" % BORINGSSL_VERSION,
+    ],
 )
 
 # CockroachDB binary used for tests.
@@ -102,11 +104,13 @@
     urls = ["https://github.com/benhoyt/inih/archive/%s.tar.gz" % INIH_VERSION],
 )
 
-git_repository(
+GPERF_VERSION = "de9373c2d48a3edf29862eb8be44764a7f7d24c6"
+
+http_archive(
     name = "gperf",
-    commit = "de9373c2d48a3edf29862eb8be44764a7f7d24c6",
-    remote = "https://github.com/monogon-dev/gperf.git",
-    shallow_since = "1615306886 +0100",
+    integrity = "sha256-xHLG+LYlXSuNG1rNvXwgjoSSG/FAZ9fu2WT4rTvnJkU=",
+    strip_prefix = "gperf-" + GPERF_VERSION,
+    urls = ["https://github.com/monogon-dev/gperf/archive/%s.tar.gz" % GPERF_VERSION],
 )
 
 LINUX_VERSION = "6.6.71"