summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/emulators/np2kai/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/emulators/np2kai/default.nix')
-rw-r--r--pkgs/applications/emulators/np2kai/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/np2kai/default.nix b/pkgs/applications/emulators/np2kai/default.nix
index 0ed47af8f5bf..dd5e53967c01 100644
--- a/pkgs/applications/emulators/np2kai/default.nix
+++ b/pkgs/applications/emulators/np2kai/default.nix
@@ -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