2018-07-05 17:47:43 +01:00
|
|
|
{ stdenv, callPackage
|
|
|
|
, tiles ? true, Cocoa, CoreFoundation
|
|
|
|
, debug ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (stdenv.lib) optionals optionalString substring;
|
|
|
|
inherit (callPackage ./common.nix { inherit tiles Cocoa debug; }) common utils;
|
|
|
|
inherit (utils) fetchFromCleverRaven installXDGAppLauncher installMacOSAppLauncher;
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation (common // rec {
|
2018-07-13 04:32:30 +01:00
|
|
|
version = "2018-07-15";
|
2016-07-03 21:42:37 +01:00
|
|
|
name = "cataclysm-dda-git-${version}";
|
|
|
|
|
2018-07-05 17:47:43 +01:00
|
|
|
src = fetchFromCleverRaven {
|
2018-07-13 04:32:30 +01:00
|
|
|
rev = "e1e5d81";
|
|
|
|
sha256 = "198wfj8l1p8xlwicj92cq237pzv2ha9pcf240y7ijhjpmlc9jkr1";
|
2016-07-03 21:42:37 +01:00
|
|
|
};
|
|
|
|
|
2018-07-05 17:47:43 +01:00
|
|
|
buildInputs = common.buildInputs
|
|
|
|
++ optionals stdenv.isDarwin [ CoreFoundation ];
|
2016-07-03 21:42:37 +01:00
|
|
|
|
2018-01-22 10:45:12 +00:00
|
|
|
patches = [ ./patches/fix_locale_dir_git.patch ];
|
|
|
|
|
2018-07-05 17:47:43 +01:00
|
|
|
makeFlags = common.makeFlags ++ [
|
2018-02-06 15:01:15 +00:00
|
|
|
"VERSION=git-${version}-${substring 0 8 src.rev}"
|
2018-01-21 15:01:17 +00:00
|
|
|
];
|
2016-07-03 21:42:37 +01:00
|
|
|
|
2018-07-05 17:47:43 +01:00
|
|
|
postInstall = optionalString tiles
|
|
|
|
( if !stdenv.isDarwin
|
|
|
|
then installXDGAppLauncher
|
|
|
|
else installMacOSAppLauncher
|
|
|
|
);
|
2016-07-03 21:42:37 +01:00
|
|
|
|
2017-12-04 22:42:47 +00:00
|
|
|
# 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;
|
2016-07-03 21:42:37 +01:00
|
|
|
|
2018-07-05 17:47:43 +01:00
|
|
|
meta = common.meta // {
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ rardiol ];
|
2016-07-03 21:42:37 +01:00
|
|
|
};
|
2018-07-05 17:47:43 +01:00
|
|
|
})
|