beamMinimal27Packages.erlang: fix build failure from ignored DOC_TARGETS

Assisted-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adam C. Stephens
2026-05-27 15:13:31 -04:00
parent d2e23884aa
commit 8a63423119
@@ -114,6 +114,11 @@ stdenv.mkDerivation {
# disksup requires a shell
postPatch = ''
substituteInPlace lib/os_mon/src/disksup.erl --replace-fail '"sh ' '"${runtimeShell} '
''
# https://github.com/erlang/otp/issues/11151
+ lib.optionalString (!wxSupport && major == "27") ''
substituteInPlace lib/wx/doc/Makefile \
--replace-fail $'ifneq ($(CAN_BUILD_DRIVER), true)\nDOC_TARGETS=\nendif\n' ""
'';
debugInfo = enableDebugInfo;