armagetronad: fix build failure for armagetronad."0.4"

This commit is contained in:
Pratham Patel
2026-04-07 21:43:00 +05:30
parent 29796a13e3
commit 422503a67b
+8
View File
@@ -93,6 +93,12 @@ let
SDL2_mixer
];
extraNativeBuildInputs = [ bison ];
# `label()` was removed in protobuf 34
# <https://github.com/protocolbuffers/protobuf/commit/b76faa921fdd244f374c7be0bddd4050fc42c292>
postPatch = ''
substituteInPlace src/network/nProtoBuf.cpp \
--replace-fail 'field->label() == FieldDescriptor::LABEL_REPEATED' 'field->is_repeated()'
'';
};
# https://gitlab.com/armagetronad/armagetronad/-/commits/hack-0.2.8-sty+ct+ap/?ref_type=heads
@@ -145,6 +151,8 @@ let
pname = mainProgram;
inherit (resolvedParams) version src;
postPatch = resolvedParams.postPatch or "";
# Build works fine; install has a race.
enableParallelBuilding = true;
enableParallelInstalling = false;