2019-05-03 08:00:23 +00:00
|
|
|
{ stdenv, callPackage, lua, CoreFoundation
|
2019-05-02 16:29:07 +00:00
|
|
|
, tiles ? true, Cocoa
|
2018-07-05 16:47:43 +00:00
|
|
|
, debug ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2019-05-02 16:50:40 +00:00
|
|
|
inherit (callPackage ./common.nix { inherit tiles CoreFoundation Cocoa debug; }) common utils;
|
|
|
|
inherit (utils) fetchFromCleverRaven;
|
2018-07-05 16:47:43 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation (common // rec {
|
2019-05-02 16:29:07 +00:00
|
|
|
version = "0.D";
|
2015-08-06 21:04:44 +00:00
|
|
|
name = "cataclysm-dda-${version}";
|
|
|
|
|
2018-07-05 16:47:43 +00:00
|
|
|
src = fetchFromCleverRaven {
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2019-05-02 16:29:07 +00:00
|
|
|
sha256 = "00zzhx1mh1qjq668cga5nbrxp2qk6b82j5ak65skhgnlr6ii4ysc";
|
2015-08-06 21:04:44 +00:00
|
|
|
};
|
|
|
|
|
2019-05-03 08:00:23 +00:00
|
|
|
buildInputs = common.buildInputs ++ [ lua ];
|
|
|
|
|
2018-01-22 10:45:12 +00:00
|
|
|
patches = [ ./patches/fix_locale_dir.patch ];
|
|
|
|
|
2019-05-02 16:29:07 +00:00
|
|
|
postPatch = common.postPatch + ''
|
|
|
|
substituteInPlace lua/autoexec.lua --replace "/usr/share" "$out/share"
|
2018-01-22 03:19:27 +00:00
|
|
|
'';
|
|
|
|
|
2019-12-27 04:12:49 +00:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=deprecated-copy";
|
2019-11-03 12:18:25 +00:00
|
|
|
|
2019-05-03 08:00:23 +00:00
|
|
|
makeFlags = common.makeFlags ++ [
|
|
|
|
"LUA=1"
|
|
|
|
];
|
|
|
|
|
2018-07-19 02:40:56 +00:00
|
|
|
meta = with stdenv.lib.maintainers; common.meta // {
|
|
|
|
maintainers = common.meta.maintainers ++ [ skeidel ];
|
2015-08-06 21:04:44 +00:00
|
|
|
};
|
2018-07-05 16:47:43 +00:00
|
|
|
})
|