nixpkgs-suyu/pkgs/games/cataclysm-dda/default.nix

36 lines
839 B
Nix
Raw Normal View History

{ stdenv, callPackage, lua, CoreFoundation
2019-05-02 18:29:07 +02:00
, tiles ? true, Cocoa
, debug ? false
}:
let
2019-05-02 18:50:40 +02:00
inherit (callPackage ./common.nix { inherit tiles CoreFoundation Cocoa debug; }) common utils;
inherit (utils) fetchFromCleverRaven;
in
stdenv.mkDerivation (common // rec {
2019-05-02 18:29:07 +02:00
version = "0.D";
2015-08-06 23:04:44 +02:00
name = "cataclysm-dda-${version}";
src = fetchFromCleverRaven {
2019-09-09 01:38:31 +02:00
rev = version;
2019-05-02 18:29:07 +02:00
sha256 = "00zzhx1mh1qjq668cga5nbrxp2qk6b82j5ak65skhgnlr6ii4ysc";
2015-08-06 23:04:44 +02:00
};
buildInputs = common.buildInputs ++ [ lua ];
patches = [ ./patches/fix_locale_dir.patch ];
2019-05-02 18:29:07 +02:00
postPatch = common.postPatch + ''
substituteInPlace lua/autoexec.lua --replace "/usr/share" "$out/share"
'';
makeFlags = common.makeFlags ++ [
"LUA=1"
];
meta = with stdenv.lib.maintainers; common.meta // {
maintainers = common.meta.maintainers ++ [ skeidel ];
2015-08-06 23:04:44 +02:00
};
})