Skip to content

Commit

Permalink
Allow passing environment variables to rules_haskell_integration_test
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Nov 19, 2024
1 parent 34e1273 commit 088262c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def rules_haskell_integration_test(
workspace_path,
srcs,
deps = [],
env = {},
bindist_bazel_versions = SUPPORTED_BAZEL_VERSIONS,
nixpkgs_bazel_packages = SUPPORTED_NIXPKGS_BAZEL_PACKAGES,
**kwargs):
Expand All @@ -33,7 +34,7 @@ def rules_haskell_integration_test(
name = "%s_nixpkgs" % name,
srcs = srcs,
deps = deps,
env = {
env = env | {
"NIXPKGS": "1",
},
bazel_binaries = nixpkgs_bazel_binaries,
Expand All @@ -50,6 +51,7 @@ def rules_haskell_integration_test(
name = "%s_bindist" % name,
srcs = srcs,
deps = deps,
env = env,
bazel_binaries = bindist_bazel_binaries,
workspace_path = workspace_path,
rule_files = ["@rules_haskell//:distribution"],
Expand Down

0 comments on commit 088262c

Please sign in to comment.