daml/bazel_tools/hackage_mirror.patch
Digital Asset GmbH 05e691f558 open-sourcing daml
2019-04-04 09:33:38 +01:00

23 lines
919 B
Diff

diff --git a/hazel/hazel.bzl b/hazel/hazel.bzl
index 41c568c..f45a312 100644
--- a/hazel/hazel.bzl
+++ b/hazel/hazel.bzl
@@ -187,7 +187,7 @@ def hazel_repositories(
package_version = pkgs[p].version
pkg = "{}-{}".format(package_name, package_version)
- url = "https://hackage.haskell.org/package/{}.tar.gz".format(pkg)
+ url = "http://hackage.fpcomplete.com/package/{}.tar.gz".format(pkg)
download_options += {"url": url}
stripPrefix = package_name + "-" + package_version
@@ -247,7 +247,7 @@ def hazel_custom_package_hackage(
build_file and build_file_content are mutually exclusive.
"""
package_id = package_name + "-" + version
- url = "https://hackage.haskell.org/package/{0}/{1}.tar.gz".format(
+ url = "http://hackage.fpcomplete.com/package/{0}.tar.gz".format(
package_id,
package_id,
)