2019-05-02 16:40:17 +00:00
|
|
|
{ stdenv, callPackage, CoreFoundation
|
|
|
|
, tiles ? true, Cocoa
|
2018-07-05 16:47:43 +00:00
|
|
|
, debug ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2019-05-02 16:50:40 +00:00
|
|
|
inherit (stdenv.lib) substring;
|
|
|
|
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:40:17 +00:00
|
|
|
version = "2019-05-03";
|
2016-07-03 20:42:37 +00:00
|
|
|
name = "cataclysm-dda-git-${version}";
|
|
|
|
|
2018-07-05 16:47:43 +00:00
|
|
|
src = fetchFromCleverRaven {
|
2019-05-02 16:40:17 +00:00
|
|
|
rev = "65a05026e7306b5d1228dc6ed885c43447f128b5";
|
|
|
|
sha256 = "18yn0h6b4j9lx67sq1d886la3l6l7bqsnwj6mw2khidssiy18y0n";
|
2016-07-03 20:42:37 +00:00
|
|
|
};
|
|
|
|
|
2018-01-22 10:45:12 +00:00
|
|
|
patches = [ ./patches/fix_locale_dir_git.patch ];
|
|
|
|
|
2018-07-05 16:47:43 +00: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 20:42:37 +00:00
|
|
|
|
2018-07-19 02:40:56 +00:00
|
|
|
meta = with stdenv.lib.maintainers; common.meta // {
|
|
|
|
maintainers = common.meta.maintainers ++ [ rardiol ];
|
2016-07-03 20:42:37 +00:00
|
|
|
};
|
2018-07-05 16:47:43 +00:00
|
|
|
})
|