From 5d85ffea09033eea06a1f416c430eee575e3460c Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 30 Jul 2020 10:49:09 +0200 Subject: [PATCH] curseofwar,curseofwar-sdl: fix darwin build --- pkgs/games/curseofwar/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/games/curseofwar/default.nix b/pkgs/games/curseofwar/default.nix index 2dbb667cc70..9aff3798b6b 100644 --- a/pkgs/games/curseofwar/default.nix +++ b/pkgs/games/curseofwar/default.nix @@ -20,7 +20,11 @@ stdenv.mkDerivation rec { SDL ]; - makeFlags = (if isNull SDL then [] else [ "SDL=yes" ]) ++ [ "PREFIX=$(out)" ]; + makeFlags = (if isNull SDL then [] else [ "SDL=yes" ]) ++ [ + "PREFIX=$(out)" + # force platform's cc on darwin, otherwise gcc is used + "CC=${stdenv.cc.targetPrefix}cc" + ]; meta = with stdenv.lib; { description = "A fast-paced action strategy game";