Skip to content

Commit 088262c

Browse files
committed
Allow passing environment variables to rules_haskell_integration_test
1 parent 34e1273 commit 088262c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rules_haskell_tests/tests/integration_testing/rules_haskell_integration_test.bzl

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def rules_haskell_integration_test(
1616
workspace_path,
1717
srcs,
1818
deps = [],
19+
env = {},
1920
bindist_bazel_versions = SUPPORTED_BAZEL_VERSIONS,
2021
nixpkgs_bazel_packages = SUPPORTED_NIXPKGS_BAZEL_PACKAGES,
2122
**kwargs):
@@ -33,7 +34,7 @@ def rules_haskell_integration_test(
3334
name = "%s_nixpkgs" % name,
3435
srcs = srcs,
3536
deps = deps,
36-
env = {
37+
env = env | {
3738
"NIXPKGS": "1",
3839
},
3940
bazel_binaries = nixpkgs_bazel_binaries,
@@ -50,6 +51,7 @@ def rules_haskell_integration_test(
5051
name = "%s_bindist" % name,
5152
srcs = srcs,
5253
deps = deps,
54+
env = env,
5355
bazel_binaries = bindist_bazel_binaries,
5456
workspace_path = workspace_path,
5557
rule_files = ["@rules_haskell//:distribution"],

0 commit comments

Comments
 (0)