Skip to content

Commit 6035331

Browse files
authored
Merge branch 'master' into fix-test-ghc-patches
2 parents cf99bd6 + 75de1e4 commit 6035331

File tree

44 files changed

+100
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+100
-129
lines changed

.bazelrc.bzlmod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ common --noenable_bzlmod
33

44
common:bzlmod --enable_bzlmod
55
# Note, have to use /// to make Bazel not crash on Windows
6-
common --registry=file:///%workspace%/registry --registry=https://bcr.bazel.build
6+
common:common --registry=file:///%workspace%/registry --registry=https://bcr.bazel.build
7+

.bazelrc.common

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Global Configuration
44
# --------------------
55

6+
# enable common config by default (needed for renovate to ignore the file: registry)
7+
common --config common
8+
69
# Force TLS 1.2. With TLS 1.3, we run into the following error on Darwin.
710
# > No subject alternative DNS name matching github-releases.githubusercontent.com found.
811
# It looks like this is a result of SNI being broken on TLS 1.3 which results

MODULE.bazel

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,27 +119,27 @@ use_repo(npm, "rules_haskell_npm")
119119
#### Development dependencies ####
120120
bazel_dep(
121121
name = "rules_nixpkgs_core",
122-
version = "0.9.0",
122+
version = "0.10.0",
123123
dev_dependency = True,
124124
)
125125
bazel_dep(
126126
name = "rules_nixpkgs_cc",
127-
version = "0.9.0",
127+
version = "0.10.0",
128128
dev_dependency = True,
129129
)
130130
bazel_dep(
131131
name = "rules_nixpkgs_python",
132-
version = "0.9.0",
132+
version = "0.10.0",
133133
dev_dependency = True,
134134
)
135135
bazel_dep(
136136
name = "rules_nixpkgs_go",
137-
version = "0.9.0",
137+
version = "0.10.0",
138138
dev_dependency = True,
139139
)
140140
bazel_dep(
141141
name = "rules_nixpkgs_posix",
142-
version = "0.9.0",
142+
version = "0.10.0",
143143
dev_dependency = True,
144144
)
145145
bazel_dep(
@@ -150,7 +150,7 @@ bazel_dep(
150150
)
151151
bazel_dep(
152152
name = "rules_nixpkgs_nodejs",
153-
version = "0.9.0",
153+
version = "0.10.0",
154154
dev_dependency = True,
155155
)
156156

examples/.bazelrc.bzlmod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
common:bzlmod --enable_bzlmod
2-
common --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build
2+
common:common --registry=file://%workspace%/../registry --registry=https://bcr.bazel.build

examples/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module(
55

66
bazel_dep(
77
name = "rules_nixpkgs_core",
8-
version = "0.9.0",
8+
version = "0.10.0",
99
)
1010
bazel_dep(
1111
name = "rules_haskell_nix",

haskell/repositories.bzl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ load(
99
)
1010
load(":private/ghc_ci.bzl", "ghc_default_version")
1111

12-
_rules_nixpkgs_version = "7e627d76ba65d6c42586fc265e46bd370672b4eb"
13-
_rules_nixpkgs_sha256 = "714a0bec45d23bfc23604de5d292a68f6e12272b303fb7bf33567d2878f52612"
12+
_rules_nixpkgs_version = "0.10.0"
13+
_rules_nixpkgs_sha256 = "980edfceef2e59e1122d9be6c52413bc298435f0a3d452532b8a48d7562ffd67"
1414

1515
_rules_sh_version = "v0.3.0"
1616
_rules_sh_sha256 = "d668bb32f112ead69c58bde2cae62f6b8acefe759a8c95a2d80ff6a85af5ac5e"
@@ -77,12 +77,18 @@ def rules_haskell_dependencies():
7777
#
7878
# See https://github.com/tweag/rules_nixpkgs/issues/182 for the rational
7979

80-
strip_prefix = "rules_nixpkgs-%s" % _rules_nixpkgs_version.lstrip("v")
80+
strip_prefix = "rules_nixpkgs-%s" % _rules_nixpkgs_version
81+
82+
rules_nixpkgs_url = \
83+
"https://github.com/tweag/rules_nixpkgs/releases/download/v{version}/{prefix}.tar.gz".format(
84+
version = _rules_nixpkgs_version,
85+
prefix = strip_prefix,
86+
)
8187

8288
http_archive(
8389
name = "io_tweag_rules_nixpkgs",
8490
strip_prefix = strip_prefix,
85-
urls = ["https://github.com/tweag/rules_nixpkgs/archive/%s.tar.gz" % _rules_nixpkgs_version],
91+
urls = [rules_nixpkgs_url],
8692
sha256 = _rules_nixpkgs_sha256,
8793
)
8894

@@ -96,15 +102,15 @@ def rules_haskell_dependencies():
96102
http_archive(
97103
name = "rules_nixpkgs_core",
98104
strip_prefix = strip_prefix + "/core",
99-
urls = ["https://github.com/tweag/rules_nixpkgs/archive/%s.tar.gz" % _rules_nixpkgs_version],
105+
urls = [rules_nixpkgs_url],
100106
sha256 = _rules_nixpkgs_sha256,
101107
)
102108

103109
for toolchain in ["cc", "java", "python", "go", "rust", "posix", "nodejs"]:
104110
http_archive(
105111
name = "rules_nixpkgs_" + toolchain,
106112
strip_prefix = strip_prefix + "/toolchains/" + toolchain,
107-
urls = ["https://github.com/tweag/rules_nixpkgs/archive/%s.tar.gz" % _rules_nixpkgs_version],
113+
urls = [rules_nixpkgs_url],
108114
sha256 = _rules_nixpkgs_sha256,
109115
)
110116

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module(
22
name = "rules_nixpkgs_cc",
3-
version = "0.9.0",
3+
version = "0.10.0",
44
)
55

6-
bazel_dep(name = "rules_nixpkgs_core", version = "0.9.0")
6+
bazel_dep(name = "rules_nixpkgs_core", version = "0.10.0")
77
bazel_dep(name = "bazel_skylib", version = "1.0.3")
88
bazel_dep(name = "rules_cc", version = "0.0.1")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"integrity": "sha256-mA7fzu8uWeESLZvmxSQTvCmENfCj1FJTK4pI11Yv/Wc=",
3+
"strip_prefix": "rules_nixpkgs-0.10.0/toolchains/cc",
4+
"url": "https://github.com/tweag/rules_nixpkgs/releases/download/v0.10.0/rules_nixpkgs-0.10.0.tar.gz"
5+
}

registry/modules/rules_nixpkgs_cc/0.9.0/source.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

registry/modules/rules_nixpkgs_cc/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"name": "Andreas Herrmann"
1313
}
1414
],
15-
"versions": ["0.9.0"],
15+
"versions": ["0.10.0"],
1616
"yanked_versions": []
1717
}

0 commit comments

Comments
 (0)