@@ -204,7 +204,7 @@ in
204204 description = "Enhanced Genesis Plus libretro port";
205205 };
206206
207− mame = mkLibRetroCore {
207+ mame = (mkLibRetroCore {
208208 core = "mame";
209209 src = fetchRetro {
210210 repo = "mame";
@@ -214,6 +214,12 @@ in
214214 description = "Port of MAME to libretro";
215215
216216 extraBuildInputs = [ alsaLib mesa portaudio python27 xorg.libX11 ];
217+ }).override {
218+ postPatch = ''
219+ # Prevent the failure during the parallel building of:
220+ # make -C 3rdparty/genie/build/gmake.linux -f genie.make obj/Release/src/host/lua-5.3.0/src/lgc.o
221+ mkdir -p 3rdparty/genie/build/gmake.linux/obj/Release/src/host/lua-5.3.0/src
222+ '';
217223 };
218224
219225 mgba = mkLibRetroCore rec {