Several git commands are implemented as shell scripts that run awk, sed, grep
and perl. There is some existing patching in the postinstall for perl to rewrite
it to an absolute reference to pkgs.perl, but several other packages are both
missing as a dependency and have no rewrite logic.
In particular git filter-branch depends on sed and grep.
Additionally, the perl logic also seds git-am, which is now a binary not a shell
script anymore (see <github.com/git/git/blob/master/builtin/am.c>), so this part
was obsolete.
I tested this by grepping all shell scripts for the relevant commands and then
comparing the diffs of the new version to what is produced in master. All
changes in the scripts seem good to me.
If `git-flow` was installed without explicitly installing `getopt` and `git`
too, it couldn't find those executables. Now it can find those and it can be
used as `git-flow` executable. Note, however, that in order to use `git-flow` as
git subcommand (`git flow`), one needs to install `git` too.
* tig: 2.2 -> 2.2.1
Also move to different project URLs, as requested in
https://github.com/jonas/tig/releases/tag/tig-2.2.1
* tig: fix fetching mechanism
Rework the dependencies to allow use of fetchFromGitHub.
Improve patching of curl to use NIX_SSL_CERT_FILE as default CA
Remove patches from git, as git uses curl and passes its environment
variables to curl.
On Darwin, wrap the git-flow binary and set:
FLAGS_GETOPT_CMD=${getopt}/bin/getopt
Without this change, I was getting the following error:
flags:ERROR short flag required for (showcommands) on this platform