From 367650a9956387e1b9a9ef96d418a6eef32cf935 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:35:21 +0000 Subject: [PATCH 1/2] chore(deps): update dependency protobuf to v28 --- rules_haskell_tests/MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules_haskell_tests/MODULE.bazel b/rules_haskell_tests/MODULE.bazel index 0d36a1f05..d201eba02 100644 --- a/rules_haskell_tests/MODULE.bazel +++ b/rules_haskell_tests/MODULE.bazel @@ -81,7 +81,7 @@ bazel_dep( ) bazel_dep( name = "protobuf", - version = "21.7", + version = "28.0", repo_name = "com_google_protobuf", ) bazel_dep( From b70a06304679a2b38d1c45463f465aa47328d9df Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Mon, 2 Sep 2024 10:02:15 +0200 Subject: [PATCH 2/2] Specify C++14 standard for nixpkgs cc toolchain --- examples/WORKSPACE | 1 + examples/arm/WORKSPACE | 1 + non_module_dev_deps.bzl | 1 + rules_haskell_tests/non_module_deps_1.bzl | 1 + rules_haskell_tests/tests/ghcWithPackages_2097/test/WORKSPACE | 1 + .../repl/haskell_module_repl_cross_library_deps_test/WORKSPACE | 1 + .../tests/haskell_module/repl/haskell_module_repl_test/WORKSPACE | 1 + .../tests/repl-targets/hs_bin_repl_test/WORKSPACE | 1 + .../tests/repl-targets/hs_lib_repl_test/WORKSPACE | 1 + .../tests/stack-snapshot-deps/hs_override_stack_test/WORKSPACE | 1 + start | 1 + tutorial/WORKSPACE | 1 + 12 files changed, 12 insertions(+) diff --git a/examples/WORKSPACE b/examples/WORKSPACE index 68e54689b..95cfdabcf 100644 --- a/examples/WORKSPACE +++ b/examples/WORKSPACE @@ -32,6 +32,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure") nixpkgs_cc_configure( # Don't override the default cc toolchain needed for bindist mode. name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", ) diff --git a/examples/arm/WORKSPACE b/examples/arm/WORKSPACE index 935604acf..9cb4246b1 100644 --- a/examples/arm/WORKSPACE +++ b/examples/arm/WORKSPACE @@ -57,6 +57,7 @@ nixpkgs_cc_configure( nixpkgs_cc_configure( name = "nixpkgs_config_cc_arm", attribute_path = "cc-aarch64", + cc_std = "c++14", exec_constraints = [ "@platforms//cpu:x86_64", "@platforms//os:linux", diff --git a/non_module_dev_deps.bzl b/non_module_dev_deps.bzl index 44f5cd1ff..aa127d1e4 100644 --- a/non_module_dev_deps.bzl +++ b/non_module_dev_deps.bzl @@ -103,6 +103,7 @@ def repositories(*, bzlmod): name = "nixpkgs_config_cc", repository = "@nixpkgs_default", register = not bzlmod, + cc_std = "c++14", ) nixpkgs_package( diff --git a/rules_haskell_tests/non_module_deps_1.bzl b/rules_haskell_tests/non_module_deps_1.bzl index 8f83ee0d0..fbdb0bb72 100644 --- a/rules_haskell_tests/non_module_deps_1.bzl +++ b/rules_haskell_tests/non_module_deps_1.bzl @@ -89,6 +89,7 @@ filegroup( name = "nixpkgs_config_cc", repository = "@nixpkgs_default", register = not bzlmod, + cc_std = "c++14", ) rules_haskell_asterius_toolchains( diff --git a/rules_haskell_tests/tests/ghcWithPackages_2097/test/WORKSPACE b/rules_haskell_tests/tests/ghcWithPackages_2097/test/WORKSPACE index fdb1600ae..2cb5a4ea1 100644 --- a/rules_haskell_tests/tests/ghcWithPackages_2097/test/WORKSPACE +++ b/rules_haskell_tests/tests/ghcWithPackages_2097/test/WORKSPACE @@ -28,6 +28,7 @@ load( nixpkgs_cc_configure( name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", ) diff --git a/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_cross_library_deps_test/WORKSPACE b/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_cross_library_deps_test/WORKSPACE index ef39657ea..68e827a72 100644 --- a/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_cross_library_deps_test/WORKSPACE +++ b/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_cross_library_deps_test/WORKSPACE @@ -33,6 +33,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure") nixpkgs_cc_configure( name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", ) diff --git a/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_test/WORKSPACE b/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_test/WORKSPACE index 2732ad060..bd47beec9 100644 --- a/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_test/WORKSPACE +++ b/rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_test/WORKSPACE @@ -33,6 +33,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure") nixpkgs_cc_configure( name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", ) diff --git a/rules_haskell_tests/tests/repl-targets/hs_bin_repl_test/WORKSPACE b/rules_haskell_tests/tests/repl-targets/hs_bin_repl_test/WORKSPACE index f1e11041e..28d9633cd 100644 --- a/rules_haskell_tests/tests/repl-targets/hs_bin_repl_test/WORKSPACE +++ b/rules_haskell_tests/tests/repl-targets/hs_bin_repl_test/WORKSPACE @@ -27,6 +27,7 @@ load( nixpkgs_cc_configure( name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", ) diff --git a/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/WORKSPACE b/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/WORKSPACE index 4f705828f..0e77e96bd 100644 --- a/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/WORKSPACE +++ b/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/WORKSPACE @@ -36,6 +36,7 @@ load( nixpkgs_cc_configure( name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", ) diff --git a/rules_haskell_tests/tests/stack-snapshot-deps/hs_override_stack_test/WORKSPACE b/rules_haskell_tests/tests/stack-snapshot-deps/hs_override_stack_test/WORKSPACE index 88c98d20f..4ff6e4f5a 100644 --- a/rules_haskell_tests/tests/stack-snapshot-deps/hs_override_stack_test/WORKSPACE +++ b/rules_haskell_tests/tests/stack-snapshot-deps/hs_override_stack_test/WORKSPACE @@ -27,6 +27,7 @@ load( nixpkgs_cc_configure( name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", ) diff --git a/start b/start index e56ae1224..1634bec38 100755 --- a/start +++ b/start @@ -333,6 +333,7 @@ EOF nixpkgs_cc_configure( repository = "@nixpkgs", + cc_std = "c++14", ) nixpkgs_python_configure( diff --git a/tutorial/WORKSPACE b/tutorial/WORKSPACE index 52789c30d..24feed73b 100644 --- a/tutorial/WORKSPACE +++ b/tutorial/WORKSPACE @@ -30,6 +30,7 @@ load( nixpkgs_cc_configure( # Don't override the default cc toolchain needed for bindist mode. name = "nixpkgs_config_cc", + cc_std = "c++14", repository = "@rules_haskell//nixpkgs:default.nix", )