git: add comments for patches

Adds inline comments for all patches as per CONTRIBUTING.md
This commit is contained in:
Alexander Bantyev
2025-08-09 12:29:57 +04:00
parent d10d07d6a1
commit 3f2212cdbb
@@ -100,11 +100,19 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelInstalling = true;
patches = [
# This patch does two things: (1) use the right name for `docbook2texi',
# and (2) make sure `gitman.info' isn't produced since it's broken
# (duplicate node names).
./docbook2texi.patch
# Fix references to gettext.sh at runtime: hard-code it to
# ${pkgs.gettext}/bin/gettext.sh instead of assuming gettext.sh is in $PATH
./git-sh-i18n.patch
# Do not search for sendmail in /usr, only in $PATH
./git-send-email-honor-PATH.patch
]
++ lib.optionals withSsh [
# Hard-code the ssh executable to ${pkgs.openssh}/bin/ssh instead of
# searching in $PATH
./ssh-path.patch
];