3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/cataclysm-dda/git.nix

34 lines
919 B
Nix
Raw Normal View History

{ stdenv, callPackage, CoreFoundation
, tiles ? true, Cocoa
, debug ? false
}:
let
2019-05-02 17:50:40 +01:00
inherit (stdenv.lib) substring;
inherit (callPackage ./common.nix { inherit tiles CoreFoundation Cocoa debug; }) common utils;
inherit (utils) fetchFromCleverRaven;
in
stdenv.mkDerivation (common // rec {
version = "2019-11-22";
2016-07-03 21:42:37 +01:00
name = "cataclysm-dda-git-${version}";
src = fetchFromCleverRaven {
rev = "a6c8ece992bffeae3788425dd4b3b5871e66a9cd";
sha256 = "0ww2q5gykxm802z1kffmnrfahjlx123j1gfszklpsv0b1fccm1ab";
2016-07-03 21:42:37 +01:00
};
patches = [
# Locale patch required for Darwin builds, see: https://github.com/NixOS/nixpkgs/pull/74064#issuecomment-560083970
./patches/fix_locale_dir_git.patch
];
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
meta = with stdenv.lib.maintainers; common.meta // {
maintainers = common.meta.maintainers ++ [ rardiol ];
2016-07-03 21:42:37 +01:00
};
})