summaryrefslogtreecommitdiffstats
path: root/pkgs/games/cataclysm-dda/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/cataclysm-dda/common.nix')
-rw-r--r--pkgs/games/cataclysm-dda/common.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/pkgs/games/cataclysm-dda/common.nix b/pkgs/games/cataclysm-dda/common.nix
index b39eb987e00d..5c2d94b3c0c0 100644
--- a/pkgs/games/cataclysm-dda/common.nix
+++ b/pkgs/games/cataclysm-dda/common.nix
@@ -1,12 +1,13 @@
-{ stdenv, fetchFromGitHub, pkgconfig, gettext, lua, ncurses
+{ stdenv, fetchFromGitHub, pkgconfig, gettext, lua, ncurses, CoreFoundation
, tiles, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, freetype, Cocoa
, debug, runtimeShell
}:
let
- inherit (stdenv.lib) optionals;
+ inherit (stdenv.lib) optionals optionalString;
- cursesDeps = [ gettext lua ncurses ];
+ cursesDeps = [ gettext lua ncurses ]
+ ++ optionals stdenv.isDarwin [ CoreFoundation ];
tilesDeps = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf freetype ]
++ optionals stdenv.isDarwin [ Cocoa ];
@@ -30,8 +31,19 @@ let
"NATIVE=osx" "CLANG=1"
];
+ postInstall = optionalString tiles
+ ( if !stdenv.isDarwin
+ then utils.installXDGAppLauncher
+ else utils.installMacOSAppLauncher
+ );
+
dontStrip = debug;
+ # https://hydra.nixos.org/build/65193254
+ # src/weather_data.cpp:203:1: fatal error: opening dependency file obj/tiles/weather_data.d: No such file or directory
+ # make: *** [Makefile:687: obj/tiles/weather_data.o] Error 1
+ enableParallelBuilding = false;
+
meta = with stdenv.lib; {
description = "A free, post apocalyptic, zombie infested rogue-like";
longDescription = ''