commit 061ca70cd1873053473d4f5798cacf48ac800f99 parent f9af8f2a1419bedd8a9d6ec7555d93f8a684d6a8 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Thu, 8 Oct 2020 17:34:36 +0300 ascii-dash: fix on darwin Diffstat:
M | pkgs/games/ascii-dash/default.nix | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkgs/games/ascii-dash/default.nix b/pkgs/games/ascii-dash/default.nix @@ -24,7 +24,8 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses5 SDL SDL_mixer ]; - NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ]; + NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isGNU "-Wno-error=stringop-truncation" + ++ stdenv.lib.optional stdenv.cc.isClang "-Wno-error=mismatched-new-delete"; installPhase = '' install -Dm755 main $out/bin/ascii-dash