Merge pull request #173739 from OPNA2608/fix/np2kai-darwin

np2kai: Fix Darwin build
This commit is contained in:
Robert Scott 2022-05-21 10:59:43 +01:00 committed by GitHub
commit 87673fe749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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