about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/cataclysm-dda/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/cataclysm-dda/git.nix')
-rw-r--r--nixpkgs/pkgs/games/cataclysm-dda/git.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/cataclysm-dda/git.nix b/nixpkgs/pkgs/games/cataclysm-dda/git.nix
new file mode 100644
index 000000000000..8e3c3e33994f
--- /dev/null
+++ b/nixpkgs/pkgs/games/cataclysm-dda/git.nix
@@ -0,0 +1,33 @@
+{ stdenv, callPackage, CoreFoundation
+, tiles ? true, Cocoa
+, debug ? false
+}:
+
+let
+  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";
+  name = "cataclysm-dda-git-${version}";
+
+  src = fetchFromCleverRaven {
+    rev = "a6c8ece992bffeae3788425dd4b3b5871e66a9cd";
+    sha256 = "0ww2q5gykxm802z1kffmnrfahjlx123j1gfszklpsv0b1fccm1ab";
+  };
+
+  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 ++ [
+    "VERSION=git-${version}-${substring 0 8 src.rev}"
+  ];
+
+  meta = with stdenv.lib.maintainers; common.meta // {
+    maintainers = common.meta.maintainers ++ [ rardiol ];
+  };
+})