From da1fc00b0781b72baaed07f53f7a8b9ab66fc8a7 Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Mon, 1 Jun 2026 09:25:39 -0400 Subject: [PATCH] beamPackages.rebar3: patch to fix OTP 29 support rebar3 itself actually compiles, it's just the tests that are failing. Patch to disable another warning until upstream fixes the tests. (cherry picked from commit 09d3443b49c777157dd564612c8fd0b200b2af98) --- pkgs/development/tools/build-managers/rebar3/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/build-managers/rebar3/default.nix b/pkgs/development/tools/build-managers/rebar3/default.nix index 5ba85977ed6d..653aa1a8cbb7 100644 --- a/pkgs/development/tools/build-managers/rebar3/default.nix +++ b/pkgs/development/tools/build-managers/rebar3/default.nix @@ -48,6 +48,13 @@ let for i in _checkouts/* ; do ln -s $(pwd)/$i $(pwd)/_build/default/lib/ done + '' + # OTP 29 tests fail on warnings, fixed in https://github.com/erlang/rebar3/pull/2996 + + lib.optionalString ((lib.versions.major erlang.version) == "29") '' + substituteInPlace rebar.config --replace-fail 'nowarn_deprecated_catch' 'nowarn_deprecated_catch,nowarn_export_var_subexpr' + + substituteInPlace apps/rebar/test/rebar_xref_SUITE.erl \ + --replace-fail 'xref_test, xref_ignore_test,' 'xref_test,' ''; buildPhase = ''