summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2020-07-30 10:49:09 +0200
committerFrancesco Gazzetta <fgaz@fgaz.me>2020-07-30 10:49:50 +0200
commit5d85ffea09033eea06a1f416c430eee575e3460c (patch)
tree4b1297fe777d31e176912b394bf32e24b42408d5 /pkgs/games
parent68b7fc27c4dc01817a4461c110000cdf8817cb39 (diff)
downloadnixpkgs-5d85ffea09033eea06a1f416c430eee575e3460c.tar
nixpkgs-5d85ffea09033eea06a1f416c430eee575e3460c.tar.gz
nixpkgs-5d85ffea09033eea06a1f416c430eee575e3460c.tar.bz2
nixpkgs-5d85ffea09033eea06a1f416c430eee575e3460c.tar.lz
nixpkgs-5d85ffea09033eea06a1f416c430eee575e3460c.tar.xz
nixpkgs-5d85ffea09033eea06a1f416c430eee575e3460c.tar.zst
nixpkgs-5d85ffea09033eea06a1f416c430eee575e3460c.zip
curseofwar,curseofwar-sdl: fix darwin build
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/curseofwar/default.nix6
1 files changed, 5 insertions, 1 deletions
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";