np2kai: Fix Darwin build

This commit is contained in:
OPNA2608 2022-05-21 01:32:40 +02:00
parent 4081a307af
commit cbd645f4ac

View file

@ -156,6 +156,9 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# TODO Remove when bumping past rev22
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
buildPhase = optionalString enableSDL ''
cd sdl2
for mkfile in ${sdlMakefiles}; do