From 13cd8b8437c43cafadf7c039372be95f16fbd4ec Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Sun, 21 Apr 2024 21:44:54 -0400 Subject: [PATCH] lambda-delta: fix build with clang --- pkgs/applications/emulators/lambda-delta/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/emulators/lambda-delta/default.nix b/pkgs/applications/emulators/lambda-delta/default.nix index a17a0eadfd5b..cf2001caff32 100644 --- a/pkgs/applications/emulators/lambda-delta/default.nix +++ b/pkgs/applications/emulators/lambda-delta/default.nix @@ -13,6 +13,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ SDL2 ]; + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_CFLAGS_COMPILE = "-std=c89"; + }; + configureFlags = [ "--without-SDL1" ];