about summary refs log tree commit diff
path: root/third_party/git/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/default.nix')
-rw-r--r--third_party/git/default.nix19
1 files changed, 7 insertions, 12 deletions
diff --git a/third_party/git/default.nix b/third_party/git/default.nix
index 05766a8e6bc2..75131c03c2ff 100644
--- a/third_party/git/default.nix
+++ b/third_party/git/default.nix
@@ -1,14 +1,9 @@
-# Use the upstream git derivation (there's a lot of stuff happening in
-# there!) and just override the source:
+# git with custom patches. This is also used by cgit via
+# `pkgs.srcOnly`.
 { pkgs, ... }:
 
-(pkgs.git.overrideAttrs(_: {
-  version = "2.29.2";
-  src = ./.;
-  doInstallCheck = false;
-  preConfigure = ''
-    ${pkgs.autoconf}/bin/autoreconf -i
-  '';
-})).override {
-  sendEmailSupport = true;
-}
+pkgs.git.overrideAttrs(old: {
+  patches = (old.patches or []) ++ [
+    ./0001-feat-third_party-git-date-add-dottime-format.patch
+  ];
+})